December 11th, 2024
NextJS _document is only rendered on the server, so event handlers cannot be used in this file.
If you tried to use state or onclick or any other kind of interactivity in a component imported by the ``_document`` file in the nextjs page router like a navbar with onclick property or anyother kind of client-side interactivity in it will fail to w.....