Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
webcat12345 committed Jan 12, 2023
1 parent 8cfc91c commit 8a444e1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import './index.css';
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import App from "./App";

ReactDOM.render(<App />, document.getElementById('root'));
const rootElement = document.getElementById("root");
const root = createRoot(rootElement);

root.render(
<StrictMode>
<App />
</StrictMode>
);

0 comments on commit 8a444e1

Please sign in to comment.