4 ms·
The view is inherently stateful. Ignoring that because the JS doesn't have to be will always get you trouble. Adding transitions, however fast they may animate,
by Rumudiez 10y ago
The view is inherently stateful. Ignoring that because the JS doesn't have to be will always get you trouble. Adding transitions, however fast they may animate, will be killer.
- Klathmon 10y agoI'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.