4 ms·
I'm not shy of using internal state, but if I can get away with functional components, I will simply because of their simplicity and how easily they can be test
by Klathmon 10y ago
I'm not shy of using internal state, but if I can get away with functional components, I will simply because of their simplicity and how easily they can be tested.
But it was just more of a story about how sometimes ugly hacky code is better. Because at the end of the day, you are writing this for the user, not for yourself.