Skip to content

Proper way to integrate a client-side only component? #10377

Answered by sergiodxa
wondering639 asked this question in Q&A
Discussion options

You must be logged in to vote

Render it inside ClientOnly from Remix Utils.

If just by importing it cause the error then also re-export it from a .client.ts file.

Also const editorComponent = lazy(() => import("./EditorComponent")); must happen outside the component, not inside.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wondering639
Comment options

Answer selected by wondering639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants