Skip to content

Checksum is invalid because of © entity #5535

@jameslnewell

Description

@jameslnewell

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 &copy; 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 &copy; makes the checksum error message go away.

render() {
  return <footer>&copy; 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions