mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-23 21:26:27 +01:00
13 lines
247 B
TypeScript
13 lines
247 B
TypeScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import App from './App';
|
|
|
|
const el = document.getElementById('root');
|
|
if (el) {
|
|
createRoot(el).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
);
|
|
}
|