Is there a way to have an "escape route" in Next to use regular React just for a single component? #13415
-
I want to illustrate a concept in React and then bring it back to Next. I start with something basic like:
...then I explain how |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @cassidoo! So ideally in this example you'd be mounting your root component using |
Beta Was this translation helpful? Give feedback.
Hi @cassidoo! So ideally in this example you'd be mounting your root component using
ReactDOM
? Kinda like a self-contained React app on a singlepage
? If so I know there is no API that Next exposes for something like that currently (as it is all abstracted away) and things get tricky usingReactDOM
and attaching to elements because everything is either pre-rendered or server rendered so then you are battling the lack ofdocument
/window