Context:
I have a react app with multiple pages along with react router, some pages use references of react router to read route params. Now I am trying to create a new app with next js, so that I could server side render all my pages.
For this, I am trying to use react-router with next js, so that I don't want to make changes in the shared pages(which uses react router references)
Example:
<BrowserRouter>
<Switch>
<Route path={'/'}><Home /></Route>
<Route path={'/about'}><About /></Route
<Switch>
</BrowserRouter>
Consider both Home and About are react components and are not present under 'pages' folder
Problem:
When I use react router, it just does the client side rendering, I don't see any calls in network that renders the prerendered html for new route
Please share your thoughts!.