File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import ReactDOM from 'react-dom' ;
3- import './index.css' ;
4- import App from './App' ;
5- import * as serviceWorker from './serviceWorker' ;
1+ import React from "react" ;
2+ import ReactDOM from "react-dom" ;
3+ import "./index.css" ;
4+ import App from "./App" ;
65
7- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
8-
9- // If you want your app to work offline and load faster, you can change
10- // unregister() to register() below. Note this comes with some pitfalls.
11- // Learn more about service workers: https://bit.ly/CRA-PWA
12- serviceWorker . unregister ( ) ;
6+ const root = document . getElementById ( "root" ) as HTMLElement ;
7+ ReactDOM . createRoot ( root ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change 11/// <reference types="react-scripts" />
2+ /// <reference types="react-dom/experimental" />
You can’t perform that action at this time.
0 commit comments