Removed deprecated lifecycle methods (#35895)
Removed `componentWillReceiveProps` and `componentWillUpdate` from the list of lifecycle methods since they are now deprecated.
This commit is contained in:
committed by
Oliver Eyton-Williams
parent
f65eea3dd6
commit
e561953827
@ -10,9 +10,7 @@ isRequired: false
|
||||
React components have several special methods that provide opportunities to perform actions at specific points in the lifecycle of a component. These are called lifecycle methods, or lifecycle hooks, and allow you to catch components at certain points in time. This can be before they are rendered, before they update, before they receive props, before they unmount, and so on. Here is a list of some of the main lifecycle methods:
|
||||
<code>componentWillMount()</code>
|
||||
<code>componentDidMount()</code>
|
||||
<code>componentWillReceiveProps()</code>
|
||||
<code>shouldComponentUpdate()</code>
|
||||
<code>componentWillUpdate()</code>
|
||||
<code>componentDidUpdate()</code>
|
||||
<code>componentWillUnmount()</code>
|
||||
The next several lessons will cover some of the basic use cases for these lifecycle methods.
|
||||
|
Reference in New Issue
Block a user