Skip to content

Commit af82b63

Browse files
author
Katherine Connolly
committed
added strictmode tags to default templates
1 parent 3f699fd commit af82b63

File tree

2 files changed

+4
-0
lines changed
  • packages
    • cra-template/template/src
    • cra-template-typescript/template/src

2 files changed

+4
-0
lines changed

packages/cra-template-typescript/template/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import './App.css';
44

55
function App() {
66
return (
7+
<React.StrictMode>
78
<div className="App">
89
<header className="App-header">
910
<img src={logo} className="App-logo" alt="logo" />
@@ -20,6 +21,7 @@ function App() {
2021
</a>
2122
</header>
2223
</div>
24+
</React.StrictMode>
2325
);
2426
}
2527

packages/cra-template/template/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import './App.css';
44

55
function App() {
66
return (
7+
<React.StrictMode>
78
<div className="App">
89
<header className="App-header">
910
<img src={logo} className="App-logo" alt="logo" />
@@ -20,6 +21,7 @@ function App() {
2021
</a>
2122
</header>
2223
</div>
24+
</React.StrictMode>
2325
);
2426
}
2527

0 commit comments

Comments
 (0)