-
Notifications
You must be signed in to change notification settings - Fork 50.9k
Checksum is invalid because of © entity #5535
Copy link
Copy link
Closed
Description
I'm using React to render on the server and on the client. On the client I'm getting this error message:
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) <div data-reactid="
(server) <div data-reactid="
Besides the checksum being present in the server rendered HTML, the rendered HTML is exactly the same on both the client and server.
There is a visual issue with © rendering as © (but this is still rendered the same on both the server and the client).
The React doco says HTML entities in literal text should work fine. Removing the HTML entity © makes the checksum error message go away.
render() {
return <footer>© 2015</footer>;
}Am I doing something wrong or is this a bug?
I'm using react 0.14.2 rendered on express viewed in chrome.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels