Using create-react-app with React Router + Express.js
Patricio López Juri
68542

The history undefined warning and display issue can be fixed with:

npm install react-router-dom --save

And then altering the import statement in routes.js to:

import { BrowserRouter as Router, Routes } from 'react-router-dom'

Then I placed the three <Route />s in a <div>.

https://stackoverflow.com/questions/43008036

Show your support

Clapping shows how much you appreciated Bill Davis’s story.