Closed
Description
So I'm just trying to figure out how to move the initial route to /react
instead of /
.
I have a working version up & running at https://github.com/brucek/react-webpack-rails-tutorial.git#test2. Everything is good, except when I initially load the page at http://localhost:3000/react
, my JS console gives:
Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally
means that you are using server rendering and the markup generated on the server was not what the
client was expecting. React injected new markup to compensate which works but you have lost many of
the benefits of server rendering. Instead, figure out why the markup being generated is different on the
client or server:
(client) 28.0.0.0"><a class="active" href="/react
(server) 28.0.0.0"><a class="" href="/react" data
so for some reason it's not detecting the route and adding the activeClassName
.
It looks like someone referenced a similar issue in react-router
, but since this is about server-side rendering (and I'm new to the React ecosystem), I'm not sure if:
- I'm just doing something wrong / I missed something
- This is an issue in react_on_rails
- Maybe it actually is a bug in react-router?
Any chance someone more knowledgable could give me a pointer? Or let me know if there is a better place to post this? Thank you!
Metadata
Metadata
Assignees
Labels
No labels