fix(browser-extensions): don't render directly in body

This commit is contained in:
Sam Denty
2024-10-04 09:31:25 +02:00
committed by Sam Denty
parent f6d79c5610
commit 6a9cb78fd6
5 changed files with 87 additions and 17 deletions

View File

@@ -3,5 +3,5 @@ import { startTransition } from 'react';
import { hydrateRoot } from 'react-dom/client';
startTransition(() => {
hydrateRoot(document, <RemixBrowser />);
hydrateRoot(document.getElementById('root')!, <RemixBrowser />);
});