If you have ever faced an issue where importing a library from npm that throws `window is undefined` in NextJS using the global object `window` that gives access to the browser window, you could have that in a `useEffect` and assign it to a ref
6/04/2023
wachira
@__wchr
If you have ever faced an issue where importing a library from npm that throws `window is undefined` in NextJS using the global object `window` that gives access to the browser window, you could have that in a `useEffect` and assign it to a ref