|
|
|
|
|
by thatswrong0
2221 days ago
|
|
> just like hooks – too lazy to figure out "this" and classes in JS That's just a part of why hooks exist: https://reactjs.org/docs/hooks-intro.html#motivation The more important parts have to do with code reusability and complexity. And the way classes work in React is not typical and there _are_ non-standard behaviors to them, so to brush that additional complexity aside is myopic. |
|