React JS Server side issue - window not found

后端 未结 7 1560
耶瑟儿~
耶瑟儿~ 2020-12-03 06:59

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/.         


        
相关标签:
7条回答
  • 2020-12-03 08:02

    Another solution I found, is that you can assign your state variables with your 'window variables' in the 'componentDidMount' event, and in the 'render' method you can test if the state variables you want are null or undefined then return null, until the 'componentDidMount' finish.

    0 讨论(0)
提交回复
热议问题