diff --git a/packages/react/src/ErrorBoundary.en.mdx b/packages/react/src/ErrorBoundary.en.mdx index 6eb1cbe6b..a7d4ce2b3 100644 --- a/packages/react/src/ErrorBoundary.en.mdx +++ b/packages/react/src/ErrorBoundary.en.mdx @@ -60,12 +60,12 @@ In fallback of ``, by calling useErrorBoundaryFallbackProps().re import { ErrorBoundary, useErrorBoundaryFallbackProps } from '@suspensive/react' const Nested = () => { - const props = useErrorBoundaryFallbackProps() + const { reset, error } = useErrorBoundaryFallbackProps() return ( <> - - {props.error.message} + + {error.message} ) }