Skip to content

Commit 62638c8

Browse files
Anveiogaearon
authored andcommitted
Fix broken link in UNSFE_componentWillReceiveProps docs. (#744)
1 parent 2bd8eda commit 62638c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/docs/reference-react-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ UNSAFE_componentWillReceiveProps(nextProps)
237237

238238
> Note
239239
>
240-
> It is recommended that you use the static [`getDerivedStateFromProps`](#static-getderivedstatefromprops) lifecycle instead of `UNSAFE_componentWillReceiveProps`. [Learn more about this recommendation here.](/blog/2018/03/20/react-v-16-3.html#component-lifecycle-changes)
240+
> It is recommended that you use the static [`getDerivedStateFromProps`](#static-getderivedstatefromprops) lifecycle instead of `UNSAFE_componentWillReceiveProps`. [Learn more about this recommendation here.](/blog/2018/03/29/react-v-16-3.html#component-lifecycle-changes)
241241
242242
`UNSAFE_componentWillReceiveProps()` is invoked before a mounted component receives new props. If you need to update the state in response to prop changes (for example, to reset it), you may compare `this.props` and `nextProps` and perform state transitions using `this.setState()` in this method.
243243

0 commit comments

Comments
 (0)