From e1075a410cd810f30621993625019af35ef59456 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Wed, 9 Oct 2019 11:06:54 +0300 Subject: [PATCH] Update ReactFeatures.md --- doc/ReactFeatures.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/ReactFeatures.md b/doc/ReactFeatures.md index f55390a..85a4b34 100644 --- a/doc/ReactFeatures.md +++ b/doc/ReactFeatures.md @@ -58,7 +58,7 @@ You can use `getDerivedStateFromError` (since React 16.6.0 and Reagent 0.9) (and (let [error (r/atom nil)] (r/create-class {:component-did-catch (fn [this e info]) - :get-derived-state-from-error-test (fn [e] + :get-derived-state-from-error (fn [e] (reset! error e) #js {}) :reagent-render (fn [comp] @@ -78,7 +78,7 @@ can be more obvious with the new `getDerivedStateFromError` method: {:constructor (fn [this props] (set! (.-state this) #js {:error nil})) :component-did-catch (fn [this e info]) - :get-derived-state-from-error-test (fn [error] #js {:error error}) + :get-derived-state-from-error (fn [error] #js {:error error}) :render (fn [this] (r/as-element (if @error