3 ms·
> it seems to favor small piece of ad-hoc code over classes I think that it's important to realize is that classes aren't the only alternative to small pieces
by boomlinde 8y ago
> it seems to favor small piece of ad-hoc code over classes
I think that it's important to realize is that classes aren't the only alternative to small pieces of ad-hoc code. Hooks are composable via functions. If you need to reuse your stateful behavior and side effects you can factor them into functions, and if you don't, you'll have exactly the same problems with classes.