how to get window object in nextjs code example
Example: @editorjs/list window not defined
import dynamic from 'next/dynamic';
const List = dynamic(() => import("@editorjs/list"), { ssr: false });
import dynamic from 'next/dynamic';
const List = dynamic(() => import("@editorjs/list"), { ssr: false });