{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/react-keybinding/issues/14","labels_url":"https://api.github.com/repos/mapbox/react-keybinding/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/react-keybinding/issues/14/comments","events_url":"https://api.github.com/repos/mapbox/react-keybinding/issues/14/events","html_url":"https://github.com/mapbox/react-keybinding/issues/14","id":58775788,"number":14,"title":"Keybindings as a component?","user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-24T17:51:44Z","updated_at":"2015-03-18T22:35:15Z","closed_at":null,"body":"Would this be clearer or better?\r\n\r\n```jsx\r\n<Keybinding mapping={{'cmd+s': this.foobar}}>\r\n</Keybinding>\r\n```\r\n\r\nThis would allow us to use [react-side-effect](https://github.com/gaearon/react-side-effect) much like [react-document-title](https://github.com/gaearon/react-document-title) does.\r\n\r\nDoes this seem like a good use of react-side-effect @gaearon?"},"comment":{"url":"https://api.github.com/repos/mapbox/react-keybinding/issues/comments/83211719","html_url":"https://github.com/mapbox/react-keybinding/issues/14#issuecomment-83211719","issue_url":"https://api.github.com/repos/mapbox/react-keybinding/issues/14","id":83211719,"user":{"login":"datapimp","id":42960,"avatar_url":"https://avatars.githubusercontent.com/u/42960?v=3","gravatar_id":"","url":"https://api.github.com/users/datapimp","html_url":"https://github.com/datapimp","followers_url":"https://api.github.com/users/datapimp/followers","following_url":"https://api.github.com/users/datapimp/following{/other_user}","gists_url":"https://api.github.com/users/datapimp/gists{/gist_id}","starred_url":"https://api.github.com/users/datapimp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datapimp/subscriptions","organizations_url":"https://api.github.com/users/datapimp/orgs","repos_url":"https://api.github.com/users/datapimp/repos","events_url":"https://api.github.com/users/datapimp/events{/privacy}","received_events_url":"https://api.github.com/users/datapimp/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T22:35:14Z","updated_at":"2015-03-18T22:35:14Z","body":"I also have come around to the `react-side-effect` approach to this after seeing @gaearon examples\r\n\r\nLIke @KyleAMathews my mental model changed from thinking about components only as DOM emitting things.  The actual web components standard has a lot of custom tags you can use for simple AJAX requests and it seems to be a pretty nice UX for the developer."}}