Skip to content

Commit 4b5ce91

Browse files
authored
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
1 parent 37e1ce9 commit 4b5ce91

File tree

1 file changed

+11
-0
lines changed
  • src/content/reference/react

1 file changed

+11
-0
lines changed

src/content/reference/react/use.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,17 @@ root.render(
397397
);
398398
```
399399
400+
```json package.json hidden
401+
{
402+
"dependencies": {
403+
"react": "19.0.0",
404+
"react-dom": "19.0.0",
405+
"react-scripts": "^5.0.0",
406+
"react-error-boundary": "4.0.3"
407+
},
408+
"main": "/index.js"
409+
}
410+
```
400411
</Sandpack>
401412
402413
#### Providing an alternative value with `Promise.catch` {/*providing-an-alternative-value-with-promise-catch*/}

0 commit comments

Comments
 (0)