alex996/react-exercises

BrowserRouter support

Closed this issue · 1 comments

Hi alex,

I cloned your ssr:final branch and added a few changes to support routing. On the client, I added <BrowserRouter> to wrap the App.js which maps over a routes array resolves the route.

Issue:
It renders well if you hit any route but the header and footer tabs are not responding to user click, i.e the onchange method does not get fired.

I've narrowed this down to a misconfiguration I might have esp with how I rehydrate the client.

Have you seen this behavior before?

Here is my code for reference https://github.com/kevmunui/react-exercises
checkout to the ssr:final to observe this

I've been stuck on this bug for a week now without any progress any help would be much appreciated 👏🏽

I think, it's just a dependency issue. - was able to fix this!