Created
December 16, 2021 01:43
-
-
Save developit/0b77758701408ab043b3cac7d4e5ac97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ReactDOM from "react-dom"; | |
import { RemixBrowser } from "remix"; | |
// hydrate a fake Document with the patch: | |
ReactDOM.hydrate(<RemixBrowser />, { | |
childNodes: [document.documentElement], | |
firstChild: document.documentElement, | |
appendChild(n) { document.replaceChild(n, document.documentElement); }, | |
insertBefore(n) { this.appendChild(n); } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment