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