3 ms·
I think you've got it exactly backwards. Events are not part of the view. Events happen to be triggered by the view and they affect global state which is then
by lumpypua 12y ago
I think you've got it exactly backwards. Events are not part of the view.
Events happen to be triggered by the view and they affect global state which is then reflected in the view.
This is the separation of concerns you want. Components don't need to know about events beyond triggering the ones they need. Components only worry about rendering state.