I'm using react and server side rendering. When rendering my component I need access to window object as I need to know the width on the window. I got sunch an error in the console:
How can I use window object with server side rendering in react?
I'm using react and server side rendering. When rendering my component I need access to window object as I need to know the width on the window. I got sunch an error in the console:
How can I use window object with server side rendering in react?