@@ -973,6 +973,23 @@ To fix this code, it's enough to follow the rules.
973
973
974
974
<Sandpack>
975
975
976
+ ` ` ` json package .json hidden
977
+ {
978
+ " dependencies" : {
979
+ " react" : " experimental" ,
980
+ " react-dom" : " experimental" ,
981
+ " react-scripts" : " latest"
982
+ },
983
+ " scripts" : {
984
+ " start" : " react-scripts start" ,
985
+ " build" : " react-scripts build" ,
986
+ " test" : " react-scripts test --env=jsdom" ,
987
+ " eject" : " react-scripts eject"
988
+ }
989
+ }
990
+ ` ` `
991
+
992
+
976
993
` ` ` js
977
994
import { useState , useEffect } from ' react' ;
978
995
@@ -1026,6 +1043,22 @@ If you remove the suppression comment, React will tell you that this Effect's co
1026
1043
1027
1044
<Sandpack>
1028
1045
1046
+ ` ` ` json package .json hidden
1047
+ {
1048
+ " dependencies" : {
1049
+ " react" : " experimental" ,
1050
+ " react-dom" : " experimental" ,
1051
+ " react-scripts" : " latest"
1052
+ },
1053
+ " scripts" : {
1054
+ " start" : " react-scripts start" ,
1055
+ " build" : " react-scripts build" ,
1056
+ " test" : " react-scripts test --env=jsdom" ,
1057
+ " eject" : " react-scripts eject"
1058
+ }
1059
+ }
1060
+ ` ` `
1061
+
1029
1062
` ` ` js
1030
1063
import { useState , useEffect } from ' react' ;
1031
1064
0 commit comments