4 ms·
React very heavily pushes "component lifecycle" events, since it was class based up until now with hooks. That is, changing the state in the view function itsel
by the_gipsy 4y ago
React very heavily pushes "component lifecycle" events, since it was class based up until now with hooks. That is, changing the state in the view function itself.
It's not wrong, it gives you one kind of separation of concerns: components. But "the view is a function of state" is completely misleading IMO.