File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import ReactDOM from 'react-dom/client'
1
+ import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
3
import App from './App.tsx'
4
4
import './index.css'
5
5
6
- ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
- < React . StrictMode >
6
+ createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
+ < StrictMode >
8
8
< App />
9
- </ React . StrictMode > ,
9
+ </ StrictMode > ,
10
10
)
Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import ReactDOM from 'react-dom/client'
1
+ import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
3
import App from './App.jsx'
4
4
import './index.css'
5
5
6
- ReactDOM . createRoot ( document . getElementById ( 'root' ) ) . render (
7
- < React . StrictMode >
6
+ createRoot ( document . getElementById ( 'root' ) ) . render (
7
+ < StrictMode >
8
8
< App />
9
- </ React . StrictMode > ,
9
+ </ StrictMode > ,
10
10
)
You can’t perform that action at this time.
0 commit comments