5 ms·
> But it actually more closely matches what’s really going on, so it’s more straightforward to someone familiar with how React works. The class-based API did no
by imbnwa 5y ago
> But it actually more closely matches what’s really going on, so it’s more straightforward to someone familiar with how React works. The class-based API did not closely match how React actually works and so led to various common bugs which don’t occur anymore with the hooks API.
I see this said a lot, so what's really going on that the class API obfuscates?
- portlander52232 5y agoIt isn’t perfect but this is probably the best explanation that I know of https://overreacted.io/a-complete-guide-to-useeffect/ https://overreacted.io/a-complete-guide-to-useeffect/