You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use stable release in demos with HTML output
* Fix Activity sandboxes (#8035)
* Fix Activity sandboxes
* hacky fix
* Revert "Fix Activity sandboxes (#8035)"
This reverts commit f9fd07c.
* Bump to 19.2
* cleanup rest of sandpacks
* Pin deps
* Add back package.json with third-party deps
* "^" should be fixed now
* add back package.json for more toastify deps
* fuggin whitespace
* more fuggin whitespace
* fml like fr fr
---------
Co-authored-by: Sebastian Sebbie Silbermann <[email protected]>
Co-authored-by: Ricky <[email protected]>
Co-authored-by: Rick Hanlon <[email protected]>
@@ -1710,22 +1710,6 @@ html, body { min-height: 300px; }
1710
1710
}
1711
1711
```
1712
1712
1713
-
```json package.json hidden
1714
-
{
1715
-
"dependencies": {
1716
-
"react":"canary",
1717
-
"react-dom":"canary",
1718
-
"react-scripts":"latest"
1719
-
},
1720
-
"scripts": {
1721
-
"start":"react-scripts start",
1722
-
"build":"react-scripts build",
1723
-
"test":"react-scripts test --env=jsdom",
1724
-
"eject":"react-scripts eject"
1725
-
}
1726
-
}
1727
-
```
1728
-
1729
1713
</Sandpack>
1730
1714
1731
1715
However, you didn't *have to* do that. As with regular functions, ultimately you decide where to draw the boundaries between different parts of your code. You could also take a very different approach. Instead of keeping the logic in the Effect, you could move most of the imperative logic inside a JavaScript [class:](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes)
@@ -2199,22 +2183,6 @@ It looks like your `useInterval` Hook accepts an event listener as an argument.
2199
2183
2200
2184
<Sandpack>
2201
2185
2202
-
```json package.json hidden
2203
-
{
2204
-
"dependencies": {
2205
-
"react":"canary",
2206
-
"react-dom":"canary",
2207
-
"react-scripts":"latest"
2208
-
},
2209
-
"scripts": {
2210
-
"start":"react-scripts start",
2211
-
"build":"react-scripts build",
2212
-
"test":"react-scripts test --env=jsdom",
2213
-
"eject":"react-scripts eject"
2214
-
}
2215
-
}
2216
-
```
2217
-
2218
2186
```js
2219
2187
import { useCounter } from'./useCounter.js';
2220
2188
import { useInterval } from'./useInterval.js';
@@ -2270,22 +2238,6 @@ With this change, both intervals work as expected and don't interfere with each
0 commit comments