Add missing react-error-boundary dependency (#7353)

the “Dealing with rejected Promises” codesandbox example depends on react-error-boundary, but doesn’t specify it as a dependency, so the code example is broken
This commit is contained in:
Andrew Patton
2024-12-16 08:05:36 -08:00
committed by GitHub
parent 37e1ce947f
commit 4b5ce9150c

View File

@@ -397,6 +397,17 @@ root.render(
);
```
```json package.json hidden
{
"dependencies": {
"react": "19.0.0",
"react-dom": "19.0.0",
"react-scripts": "^5.0.0",
"react-error-boundary": "4.0.3"
},
"main": "/index.js"
}
```
</Sandpack>
#### Providing an alternative value with `Promise.catch` {/*providing-an-alternative-value-with-promise-catch*/}