React 18
This commit is contained in:
parent
da771e064a
commit
b81f4e2769
18
src/index.js
18
src/index.js
|
@ -1,9 +1,11 @@
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from "react-dom/client";
|
||||||
import './styles/index.css';
|
import "./styles/index.css";
|
||||||
import App from './App';
|
import App from "./App";
|
||||||
|
|
||||||
ReactDOM.render(
|
const root = ReactDOM.createRoot(document.getElementById("root"));
|
||||||
<App />,
|
root.render(
|
||||||
document.getElementById('root')
|
<React.StrictMode>
|
||||||
);
|
<App />
|
||||||
|
</React.StrictMode>
|
||||||
|
);
|
Ŝarĝante…
Reference in New Issue