August 2017
Beginner
374 pages
10h 41m
English
Instead of using the BrowserRouter component from react-router-dom, we now need to use the ConnectedRouter component from react-router-redux. This component also requires us to pass a history property, which means we need to import that from our middleware.js file. Perfom the following steps:
import { Route } from 'react-router-dom'
import { ConnectedRouter } from 'react-router-redux'
import { history } from '../store/middleware'
Read now
Unlock full access