如何在渲染服务器端时检查Parse已记录的用户?

时间:2015-12-28 18:03:43

标签: javascript parse-platform reactjs

我是React的新手,我花了一段时间来配置并让工作正常(在我的机器上和我的脑海里)。

React的最大好处之一是半透明的服务器端渲染。

我想知道在服务器端呈现页面时如何(以及是否)可以检查用户登录状态。

现在我无法实现它,React告诉我这很糟糕:

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

0 个答案:

没有答案