Help to handle CSR in Next.js 14 app router root layout error
Unanswered
American Bully posted this in #help-forum
American BullyOP
The image RootLayout contains a Compnent props and I would like to render it <Component {...pageProps}/> but the SSR always show me error that component undefined. Actually, I would the CSR only, but I don't know how to handle a component is not imported by import instruction. I unabled to use next/dynamic to wrap it. How should I do?
2 Replies
@American Bully The image RootLayout contains a Compnent props and I would like to render it <Component {...pageProps}/> but the SSR always show me error that component undefined. Actually, I would the CSR only, but I don't know how to handle a component is not imported by import instruction. I unabled to use next/dynamic to wrap it. How should I do?
How should I do?why don't you use
children instead of some components with props and so on?@American Bully solved?