Init react, react-bootstrap, react-router-dom

Setting up a React Environment

If you have NPM and Node.js installed, you can create a React application by first installing the create-react-app.

If you’ve already created the create-react-app you can skip this section.

Install create-react-app by running this command in your

npm install -g create-react-app

Then you are able to create a React application, let’s create one called myfirstreact.

Run this command to create a React application named myfirstreact

npx create-react-app myfirstreact

The create-react-app will set up everything you need to run a React application.

Setting up react-bootstrap, react-router-dom into Environment

we need to install some libs into environment

npm install --save react-bootstrap
npm install --save react-router-dom
npm install --save styled-components

PS: Comparing bootstrap vs. react-bootstrap vs. reactstrap,react-bootstrap,reactstrap

Leave a Comment