Create new project in reactcreate-react-app project-name
.
Step 1:start projectnpm start
using this command into terminal.
Now you can install your bootstrap usingnpm i --save react-bootstrap
. After you're done you should install bootstrapnpm i --save bootstrap
as well.
Okey then after you're done with installing bothreact bootstrap andbootstrap.
You can go to your react folder. Undersrc > index.js
. That is your entry point for your web app.
From there you should import bootstrap through this line here
import Bootstrap from `bootstrap/dist/css/bootstrap.css
You can save that.
Now you can go to yourapp.js
file. It's undersrc as well.
You can import anything bootstrap as an example. I'll just button because it's simple.import { Button } from 'react-bootstrap'
App.js file
return( <Button bsStyle='success'> Hello </Button>)
Reference -React Bootstrap
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse