Guillermo Rodas
Google Developer Expert in Web Technologies, Community Organizer, and Online Teacher.
@glrodasz
Google Developer Expert in Web Technologies
Community Organizer and Online Teacher
https://guillermorodas.com
@glrodasz
You can Google me as well.
this.state and this.setState()
React.useState() with Hooks
before React v16.3
Mounting
Updating
Unmounting
after React v16.4
https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
after React v16.4
These methods are called when there is an error during rendering, in a lifecycle method, or in the constructor of any child component.
componentDidMount()
componentWillUnmount()
componentWillReceiveProps()
componentDidUpdate()
shouldComponentUpdate()
bit.ly/react-lifecycle-hooks
By Guillermo Rodas
A presentation about how lifecycle works in React and its equivalent in Hooks.
Google Developer Expert in Web Technologies, Community Organizer, and Online Teacher.