From 4b9b418ffeed2bf4ff453234ac22daba4d796d88 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Thu, 27 Jul 2017 20:13:41 +0900 Subject: [PATCH 1/2] Add a link for the error boundaries codemod into the blog post --- docs/_posts/2017-07-26-error-handling-in-react-16.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/_posts/2017-07-26-error-handling-in-react-16.md b/docs/_posts/2017-07-26-error-handling-in-react-16.md index 24cdb58e7f47..7b205706c6fc 100644 --- a/docs/_posts/2017-07-26-error-handling-in-react-16.md +++ b/docs/_posts/2017-07-26-error-handling-in-react-16.md @@ -98,3 +98,5 @@ Error boundaries preserve the declarative nature of React, and behave as you wou ## Naming Changes from React 15 React 15 included a very limited support for error boundaries under a different method name: `unstable_handleError`. This method no longer works, and you will need to change it to `componentDidCatch` in your code starting from the first 16 beta release. + +For this change, we've provided [a codemod](https://github.com/reactjs/react-codemod#error-boundaries) to automatically migrate your code. From 824d830df0320a3ff532e50f0b9e2e3393d6991a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 27 Jul 2017 14:57:09 +0100 Subject: [PATCH 2/2] Update 2017-07-26-error-handling-in-react-16.md --- docs/_posts/2017-07-26-error-handling-in-react-16.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_posts/2017-07-26-error-handling-in-react-16.md b/docs/_posts/2017-07-26-error-handling-in-react-16.md index 7b205706c6fc..d739c53bc0dc 100644 --- a/docs/_posts/2017-07-26-error-handling-in-react-16.md +++ b/docs/_posts/2017-07-26-error-handling-in-react-16.md @@ -99,4 +99,4 @@ Error boundaries preserve the declarative nature of React, and behave as you wou React 15 included a very limited support for error boundaries under a different method name: `unstable_handleError`. This method no longer works, and you will need to change it to `componentDidCatch` in your code starting from the first 16 beta release. -For this change, we've provided [a codemod](https://github.com/reactjs/react-codemod#error-boundaries) to automatically migrate your code. +For this change, we’ve provided [a codemod](https://github.com/reactjs/react-codemod#error-boundaries) to automatically migrate your code.