From 73006fefa196fae31dc358ac93b5c38e513d3981 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Wed, 23 May 2018 16:47:27 -0700 Subject: [PATCH] Add an "oops!" so skimmers don't mistake the bad example for a good one --- content/blog/2018-05-23-react-v-16-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/2018-05-23-react-v-16-4.md b/content/blog/2018-05-23-react-v-16-4.md index 7de02c51..d41f63a2 100644 --- a/content/blog/2018-05-23-react-v-16-4.md +++ b/content/blog/2018-05-23-react-v-16-4.md @@ -52,7 +52,7 @@ static getDerivedStateFromProps(props, state) { return { // Since this method fires on both props and state changes, local updates // to the controlled value will be ignored, since the props version always - // overrides it. + // overrides it. Oops! controlledValue: props.value, }; }