3 ms·
class components have a huge downside in that `this` is mutable. Hooks solve this problem, and this problem seems to have motivated their creation to some exten
by city41 7y ago
class components have a huge downside in that `this` is mutable. Hooks solve this problem, and this problem seems to have motivated their creation to some extent. This blog post goes into more detail: https://overreacted.io/how-are-function-components-different-from-classes/ https://overreacted.io/how-are-function-components-different...