@@ -1,7 +1,9 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import SheetEditor from './components/SheetEditor';
|
||||
|
||||
import './styles.css';
|
||||
|
||||
ReactDOM.render(<SheetEditor />, document.getElementById('index'));
|
||||
const container = document.getElementById('index');
|
||||
const root = createRoot(container);
|
||||
root.render(<SheetEditor />);
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import SheetEditor from './components/SheetEditor';
|
||||
|
||||
import './styles.css';
|
||||
|
||||
ReactDOM.render(<SheetEditor />, document.getElementById('index'));
|
||||
const container = document.getElementById('index');
|
||||
const root = createRoot(container);
|
||||
root.render(<SheetEditor />);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import About from './components/About';
|
||||
|
||||
ReactDOM.render(<About />, document.getElementById('index'));
|
||||
const container = document.getElementById('index');
|
||||
const root = createRoot(container);
|
||||
root.render(<About />);
|
||||
|
||||
Reference in New Issue
Block a user