This is an out-of-the-box Create React App install, and I have only done two things:
npm install react-bootstrap bootstrapChanged App.js as follows:
import logo from './logo.svg'; import './App.css'; import Button from 'react-bootstrap/Button'; function App() { function buy() { alert('Clicked Buy'); } function sell() { alert('Clicked Sell'); } return ( <div> <Button variant='success' onClick={buy}> Button1 </Button> <Button variant='danger' onClick={sell}> Button2 </Button> </div> ); } export default App;
The buttons look the same as before I changed them from <button> to <Button variant=...:

