From f8409317292d3018a86eb297d91de1ae5afb3071 Mon Sep 17 00:00:00 2001 From: Erik McKelvey Date: Mon, 2 Oct 2023 12:13:45 -0700 Subject: [PATCH 1/2] fix: typo in error-boundaries.md --- docs/basic/getting-started/error-boundaries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic/getting-started/error-boundaries.md b/docs/basic/getting-started/error-boundaries.md index 60371331..cdf0726e 100644 --- a/docs/basic/getting-started/error-boundaries.md +++ b/docs/basic/getting-started/error-boundaries.md @@ -8,7 +8,7 @@ title: Error Boundaries [React-error-boundary](https://github.com/bvaughn/react-error-boundary) - is a lightweight package ready to use for this scenario with TS support built-in. This approach also lets you avoid class components that are not that popular anymore. -### Options 2: Writing your custom error boundary component +### Option 2: Writing your custom error boundary component If you don't want to add a new npm package for this, you can also write your own `ErrorBoundary` component. From cc4c4c63b0529cbcc11138500587ec1adada9867 Mon Sep 17 00:00:00 2001 From: Erik McKelvey Date: Mon, 2 Oct 2023 12:31:03 -0700 Subject: [PATCH 2/2] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0571b15c..e3542991 100644 --- a/README.md +++ b/README.md @@ -1865,7 +1865,7 @@ This example is based on the [Event Bubbling Through Portal](https://reactjs.org [React-error-boundary](https://github.com/bvaughn/react-error-boundary) - is a lightweight package ready to use for this scenario with TS support built-in. This approach also lets you avoid class components that are not that popular anymore. -##### Options 2: Writing your custom error boundary component +##### Option 2: Writing your custom error boundary component If you don't want to add a new npm package for this, you can also write your own `ErrorBoundary` component.