October 2019
Intermediate to advanced
426 pages
11h 49m
English
In the past, we had to use class components with special functions called life cycle methods, such as componentDidUpdate, and special state-handling methods, such as this.setState, in order to deal with state changes. React classes, and especially the this context, which is a JavaScript object, are hard to read and understand for both humans and machines.
this is a special keyword in JavaScript that always refers to the object that it belongs to:
Read now
Unlock full access