Browse Source

since -> because

main
Andrew Clark 7 years ago
parent
commit
dc0ed4b4c6
  1. 4
      content/blog/2018-05-23-react-v-16-4.md

4
content/blog/2018-05-23-react-v-16-4.md

@ -49,8 +49,8 @@ static getDerivedStateFromProps(props, state) {
if (props.value !== state.controlledValue) {
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. Oops!
// to the controlled value will be ignored, because the props version
// always overrides it. Oops!
controlledValue: props.value,
};
}

Loading…
Cancel
Save