File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
cra-template-typescript/template/src
cra-template/template/src Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ import './index.css';
44import App from './App' ;
55import * as serviceWorker from './serviceWorker' ;
66
7- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
7+ ReactDOM . render (
8+ < React . StrictMode >
9+ < App />
10+ </ React . StrictMode > ,
11+ document . getElementById ( 'root' )
12+ ) ;
813
914// If you want your app to work offline and load faster, you can change
1015// unregister() to register() below. Note this comes with some pitfalls.
Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ import './index.css';
44import App from './App' ;
55import * as serviceWorker from './serviceWorker' ;
66
7- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
7+ ReactDOM . render (
8+ < React . StrictMode >
9+ < App />
10+ </ React . StrictMode > ,
11+ document . getElementById ( 'root' )
12+ ) ;
813
914// If you want your app to work offline and load faster, you can change
1015// unregister() to register() below. Note this comes with some pitfalls.
You can’t perform that action at this time.
0 commit comments