阅读背景:

如何避免在ReactJS同构应用程序中的服务器上获取错误“localStorage未定义”?

来源:互联网 

I was using localStorage in my webApp to store data on client side. But when I've tried to make the app isomorphic, this causes an issue. Due to node is not browser environment, it can't define such objects as 'window', 'localStorage' etc. How do I solve this issue?I was using localStorage in my webApp to store




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: