Skip to content

Commit f15830d

Browse files
authored
Use experiemental in all uEE doc sandboxes (#7820)
1 parent 65d297e commit f15830d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/content/learn/separating-events-from-effects.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,23 @@ To fix this code, it's enough to follow the rules.
973973
974974
<Sandpack>
975975
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+
976993
```js
977994
import { useState, useEffect } from 'react';
978995

@@ -1026,6 +1043,22 @@ If you remove the suppression comment, React will tell you that this Effect's co
10261043
10271044
<Sandpack>
10281045
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+
10291062
```js
10301063
import { useState, useEffect } from 'react';
10311064

0 commit comments

Comments
 (0)