3 ms·
> I guess the redeeming point is that hook usage is usually easy to refactor out Yes, but now imagine that you could've done it more or less correct in the fir
by ihateolives 4y ago
> I guess the redeeming point is that hook usage is usually easy to refactor out
Yes, but now imagine that you could've done it more or less correct in the first try. Refactors happen, but needing the refactor after it took 2 years for best practices to sink in? I don't think it's an endorsment for the hooks.
I refactored my old React app from classes to hooks when hooks became fashionable. Few years later I'm still sure that it's a mess and I've used hooks wrong. Am I itching to refactor again? No way. I let it rot some more, perhaps React will take another sharp turn and I'll save myself time doing it twice.