In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
- Install react router npm package by using the command
npm i react-router-dom
- Import BrowserRouter like this
import { BrowserRouter } from 'react-router-dom'
in index.js - Wrap around the component.
https://egghead.io/lessons/react-split-your-redux-store-into-multiple-reducers