From 4b5ce9150c9712f407659ef4c83560794bf5546f Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Mon, 16 Dec 2024 08:05:36 -0800 Subject: [PATCH] Add missing react-error-boundary dependency (#7353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/content/reference/react/use.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/content/reference/react/use.md b/src/content/reference/react/use.md index 48b21fa61..557a71cad 100644 --- a/src/content/reference/react/use.md +++ b/src/content/reference/react/use.md @@ -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" +} +``` #### Providing an alternative value with `Promise.catch` {/*providing-an-alternative-value-with-promise-catch*/}