回答編集履歴

2

誤字修正

2022/08/14 08:40

投稿

hoshi-takanori
hoshi-takanori

スコア7895

test CHANGED
@@ -1,4 +1,4 @@
1
- React 17 と 18 では index.js の書き方が変わってますので、次のようにすれば動くと思います。
1
+ React 18 では src/index.js の書き方が変わっので、次のように 17 の書き方に戻せば動くと思います。
2
2
 
3
3
  ```js
4
4
  import React from 'react';

1

誤字修正

2022/08/14 08:37

投稿

hoshi-takanori
hoshi-takanori

スコア7895

test CHANGED
@@ -17,4 +17,5 @@
17
17
  // If you want to start measuring performance in your app, pass a function
18
18
  // to log results (for example: reportWebVitals(console.log))
19
19
  // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
20
- reportWebVitals();```
20
+ reportWebVitals();
21
+ ```