-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added React Router example configuration #16
base: typescript
Are you sure you want to change the base?
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.