DEV Community

Discussion on: Window not defined

Collapse
majklzumberi profile image
majkl zumberi

You are using next.js so you can use Window only client side, which means you can use It only on useEffect hook.

Window Is not defined on serverside

Collapse
jishnu02 profile image
Jishnu-02 Author

can u show me how to do it?