Skip to content

Commit

Permalink
Update packages/react/src/ErrorBoundary.en.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: 김석진 <[email protected]>
  • Loading branch information
manudeli and SEOKKAMONI authored Oct 15, 2023
1 parent 108d0ae commit 9d739d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/ErrorBoundary.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ In fallback of `<ErrorBoundary/>`, by calling useErrorBoundaryFallbackProps().re
import { ErrorBoundary, useErrorBoundaryFallbackProps } from '@suspensive/react'

const Nested = () => {
const props = useErrorBoundaryFallbackProps()
const { reset, error } = useErrorBoundaryFallbackProps()

return (
<>
<button onClick={props.reset}>Try again</button>
{props.error.message}
<button onClick={reset}>Try again</button>
{error.message}
</>
)
}
Expand Down

0 comments on commit 9d739d6

Please sign in to comment.