React JS Server side issue - window not found
问题 Hi I'm trying to use react-rte in my reactJS project. I have server side rendering and every time I want to use this package I get: return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase()); ^ ReferenceError: window is not defined I guess the problem might be with isomorphic-tools but I don't know how to defer importing package to the client where window is going to be defined already. 回答1: If you're doing server side rendering, there's a good chance that the global window object