September 2018
Beginner
156 pages
3h 28m
English
Let's create a React application and then add React-Router as a dependency.
To create a React application, we will use the create-react-app CLI. The create-react-app CLI makes it easier to create an application that already works. The CLI creates a project scaffold so that you can start using the latest JavaScript features, and also provides scripts to build applications for a production environment. There are various React and React-Router starter kits available; however, using create-react-app helps in demonstrating how React-Router can be added to an existing bare-bones React application.
The first step is to install create-react-app globally using NPM, as follows:
npm install -g create-react-app
The CLI ...
Read now
Unlock full access