News for hackers. Stuff that matters.
Re:First Impressions Using React Native by tracker1 on Friday February 06, 2015 @07:40PM (#9012526)
Are user triggered events for a view part of the view, or something else? I think this is where such a separation of concerns comes in... a view is more than just how it is rendered, it is also events for the view. There are also child components, and handling these events, or encapsulating them into events to be triggered by a given view.

When you think of it this way, it makes sense. From a designer perspective it doesn't, and you have to adapt designs into a view, just the same, you usually do anyway.

Re:First Impressions Using React Native by lumpypua on Saturday February 07, 2015 @03:57AM (#9013512)
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.