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

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>.

Show your support

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