Closed liamqma closed 7 months ago
To Reproduce the problem:
const root = ReactDOM.createRoot( document.getElementById('root') ); root.render( <React.StrictMode> <App /> </React.StrictMode> );
npm start
http://localhost:8080/basic-routing/
Clicking on the link doesn't trigger the page change.
There were some changes introduced with React 18 to the strict mode
Also, some interesting threads
Lastly, not sure if related, but react-router v5 does not work with R18
https://github.com/facebook/react/issues/24451
To Reproduce the problem:
npm start
http://localhost:8080/basic-routing/
Clicking on the link doesn't trigger the page change.