Conversation
7faad3e to
a21c8ee
Compare
|
Hi there! I'm trying to implement Router with your boilerplate but there's been a major version change since this pull request & I'm getting various errors trying to implement. Is there a way to implement your boilerplate with Router v6 or should I just use v5 for now? |
|
A while back I was using 6.0.0 Beta.0, so it's definitely possible to use the latest version, but you'll have to do some changes. I'll see if I find time to update the PR accordingly, but in the meantime, you can try:
Hope that helps! |
|
Hmmmm okay! So I had V5 working last night, this morning I've tried to upgrade & implement those changes, and received this error:
When I replace
I'll keep working on other stuff while hoping for a solution :) thanks for your prompt response! |
|
Figured it out! Needed to change the import statement in
to:
|
I've recently found that including basepath with BrowserRouter is actually detrimental. It caused hydration to produce a blank page (after briefly rendering the server's page)... and only after deploying (worked fine on localhost). |
This adds React Router with full support for SSR.