Skip to content

Commit afb8a2d

Browse files
authored
Merge pull request #288 from mrAJAY1/patch-2
Added a note about using react-error-boundary in client components to…
2 parents 459dff4 + 53a06ab commit afb8a2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@
547547
**Note:** You can also use reusable [react error boundary](https://github.com/bvaughn/react-error-boundary) third-party component without writing any class. i.e, No need to use class components for Error boundaries.
548548
549549
The usage of Error boundaries from the above library is quite straight forward.
550+
>**_Note when using react-error-boundary:_** ErrorBoundary is a client component. You can only pass props to it that are serializeable or use it in files that have a "use client"; directive.
550551
551552
```jsx
552553
"use client";

0 commit comments

Comments
 (0)