File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 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'
33import App from './App.tsx'
44import './index.css'
55
6- ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7- < React . StrictMode >
6+ createRoot ( document . getElementById ( 'root' ) ! ) . render (
7+ < StrictMode >
88 < App />
9- </ React . StrictMode > ,
9+ </ StrictMode > ,
1010)
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'
33import App from './App.jsx'
44import './index.css'
55
6- ReactDOM . createRoot ( document . getElementById ( 'root' ) ) . render (
7- < React . StrictMode >
6+ createRoot ( document . getElementById ( 'root' ) ) . render (
7+ < StrictMode >
88 < App />
9- </ React . StrictMode > ,
9+ </ StrictMode > ,
1010)
You can’t perform that action at this time.
0 commit comments