{"action":"created","issue":{"url":"https://api.github.com/repos/yolkjs/yolk/issues/22","labels_url":"https://api.github.com/repos/yolkjs/yolk/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/yolkjs/yolk/issues/22/comments","events_url":"https://api.github.com/repos/yolkjs/yolk/issues/22/events","html_url":"https://github.com/yolkjs/yolk/issues/22","id":113207039,"number":22,"title":"Separating intent/interaction from view components","user":{"login":"jadbox","id":595843,"avatar_url":"https://avatars.githubusercontent.com/u/595843?v=3","gravatar_id":"","url":"https://api.github.com/users/jadbox","html_url":"https://github.com/jadbox","followers_url":"https://api.github.com/users/jadbox/followers","following_url":"https://api.github.com/users/jadbox/following{/other_user}","gists_url":"https://api.github.com/users/jadbox/gists{/gist_id}","starred_url":"https://api.github.com/users/jadbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadbox/subscriptions","organizations_url":"https://api.github.com/users/jadbox/orgs","repos_url":"https://api.github.com/users/jadbox/repos","events_url":"https://api.github.com/users/jadbox/events{/privacy}","received_events_url":"https://api.github.com/users/jadbox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-25T05:12:55Z","updated_at":"2015-10-25T19:27:05Z","closed_at":null,"body":"If you look at this example:\r\n\r\n[TodoItem.jsx](https://github.com/yolkjs/yolk-todomvc/blob/master/js/TodoItem.js)\r\n```<input className=\"toggle\" type=\"checkbox\" checked={completed} onChange={toggleComplete} />```\r\n\r\nWhat would be the best way for the view component to not have to explicitly state the onChange event on the jsx markup.The end goal is to keep the markup as clean as possible: perhaps allowing a designer to continue to provide new markup without knowledge of the system/yolk being developed around it.\r\n\r\nI'm thinking about this from the position on how Cycle uses Intent to keep the raw view tags divorced from being tied to interaction hooks."},"comment":{"url":"https://api.github.com/repos/yolkjs/yolk/issues/comments/150960652","html_url":"https://github.com/yolkjs/yolk/issues/22#issuecomment-150960652","issue_url":"https://api.github.com/repos/yolkjs/yolk/issues/22","id":150960652,"user":{"login":"jadbox","id":595843,"avatar_url":"https://avatars.githubusercontent.com/u/595843?v=3","gravatar_id":"","url":"https://api.github.com/users/jadbox","html_url":"https://github.com/jadbox","followers_url":"https://api.github.com/users/jadbox/followers","following_url":"https://api.github.com/users/jadbox/following{/other_user}","gists_url":"https://api.github.com/users/jadbox/gists{/gist_id}","starred_url":"https://api.github.com/users/jadbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadbox/subscriptions","organizations_url":"https://api.github.com/users/jadbox/orgs","repos_url":"https://api.github.com/users/jadbox/repos","events_url":"https://api.github.com/users/jadbox/events{/privacy}","received_events_url":"https://api.github.com/users/jadbox/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T19:27:05Z","updated_at":"2015-10-25T19:27:05Z","body":"Our designer (who knows little JS) is on contract and needs to work indepentantly on the raw templates, seperate from whatever dynamic logic is that sits on top. I think this is also somewhat important to keep a clean line between static html/css and the (complex) behavors that plugs into it."}}