18 lines
417 B
TypeScript
18 lines
417 B
TypeScript
import './app.css';
|
|
|
|
import React, { StrictMode } from 'react';
|
|
import Form from './components/Form';
|
|
|
|
// For React < 18
|
|
// import ReactDOM from 'react-dom';
|
|
// ReactDOM.render(<Form />, document.getElementById('editor'));
|
|
|
|
import { createRoot } from 'react-dom/client';
|
|
const container = document.getElementById('editor')!;
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<StrictMode>
|
|
<Form />
|
|
</StrictMode>
|
|
);
|