Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Use simpler example for ErrorBoundary

Gabe Kangas226c48b47492
diff --git a/web/components/_COMPONENT_HOW_TO.md b/web/components/_COMPONENT_HOW_TO.md
index 56194427c8..82df45136f 100644
--- a/web/components/_COMPONENT_HOW_TO.md
+++ b/web/components/_COMPONENT_HOW_TO.md
@@ -78,17 +78,16 @@ The `ComponentError` component is a pre-built error state that can be used to di
import { ErrorBoundary } from 'react-error-boundary';
<ErrorBoundary
- // eslint-disable-next-line react/no-unstable-nested-components
- fallbackRender={({ error: e, resetErrorBoundary }) => (
- <ComponentError
- componentName="BrowserNotifyModal"
- message={e.message}
- retryFunction={resetErrorBoundary}
- />
- )}
- >
- <YourFunctionality/>
-</ErrorBoundary
+ fallbackRender={({ error, resetErrorBoundary }) => (
+ <ComponentError
+ componentName="DesktopContent"
+ message={error.message}
+ retryFunction={resetErrorBoundary}
+ />
+ )}
+>
+ <YourComponent />
+</ErrorBoundary>
```
## Storybook