React.StrictMode vs hookrouter
Arthuru4 opened this issue · comments
Arthuru4 commented
Hello. Few days ago i created new react app with CRA. There was added "React.StrictMode" by default on creating cra:
ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') );
Just try to add this mode to your app with hookrouter, and you will see that links, created with {A} HOC does not works anymore.
On some reason react thought it rerenders component with useRoutes, but actually i saw last Route, where i was after F5.