Create a new react app

create-react-app setup-bootstrap
cd setup-bootstrap

Install bootstrap

npm install --save bootstrap

Use it

<button type="button" class="btn btn-primary">Primary</button></code>

Capture.PNG

npm start

See it

Capture.PNG

https://stackoverflow.com/questions/40037657/how-to-include-bootstrap-css-and-js-in-reactjs-app

Advertisements