mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 20:01:57 +00:00
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:
@@ -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*/}
|
||||
|
||||
Reference in New Issue
Block a user