---
title: Main
lastModified: "2026-10-01T22:43:57+01:00"
lastAuthor: Kaylee
---
```tsx title="src/main.tsx"
import { createRoot } from 'react-dom/client';

import { App } from './app';
import { Consent } from './consent';

const root = document.getElementById('root');
if (!root) {
	throw new Error('Missing #root element');
}
createRoot(root).render(
	<Consent>
		<App />
	</Consent>
);
```
