reactjs101
reactjs101 copied to clipboard
CH10,在react-redux-server-rendering中运行项目,然后修改组件的代码,刷新页面出现client与server不一致的错误
错误代码如下
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) - react-text: 5 --> 123<!-- /react-text (server) - react-text: 5 --> <!-- /react-text -->
应该是client更新了,但是server端没有更新,请问怎么解决这个错误