{"action":"opened","issue":{"url":"https://api.github.com/repos/ilkkahanninen/petiole/issues/18","repository_url":"https://api.github.com/repos/ilkkahanninen/petiole","labels_url":"https://api.github.com/repos/ilkkahanninen/petiole/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/ilkkahanninen/petiole/issues/18/comments","events_url":"https://api.github.com/repos/ilkkahanninen/petiole/issues/18/events","html_url":"https://github.com/ilkkahanninen/petiole/issues/18","id":186368868,"number":18,"title":"New plugin: react-petiole","user":{"login":"ilkkahanninen","id":6116633,"avatar_url":"https://avatars.githubusercontent.com/u/6116633?v=3","gravatar_id":"","url":"https://api.github.com/users/ilkkahanninen","html_url":"https://github.com/ilkkahanninen","followers_url":"https://api.github.com/users/ilkkahanninen/followers","following_url":"https://api.github.com/users/ilkkahanninen/following{/other_user}","gists_url":"https://api.github.com/users/ilkkahanninen/gists{/gist_id}","starred_url":"https://api.github.com/users/ilkkahanninen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilkkahanninen/subscriptions","organizations_url":"https://api.github.com/users/ilkkahanninen/orgs","repos_url":"https://api.github.com/users/ilkkahanninen/repos","events_url":"https://api.github.com/users/ilkkahanninen/events{/privacy}","received_events_url":"https://api.github.com/users/ilkkahanninen/received_events","type":"User","site_admin":false},"labels":[{"id":464893648,"url":"https://api.github.com/repos/ilkkahanninen/petiole/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T19:02:32Z","updated_at":"2016-10-31T19:02:32Z","closed_at":null,"body":"Provide connect function with snappier API compared to react-redux. Something like this:\r\n\r\n```javascript\r\nimport { connect } from 'react-petiole';\r\nimport MyComponent from './MyComponent';\r\nimport items from '../store/items';\r\nimport users from '../store/users';\r\n\r\nexport default connect({\r\n  actions: {\r\n    items, // get all actions from items\r\n    fetchUsers: users.actions.fetchUsers, // map only this one action\r\n  },\r\n  state: {\r\n    items, // gets whole state of items leaf, shortcut for items: state => items.select(state)\r\n    userCount: users.selectors.userCount, // use selector\r\n  }\r\n})(MyComponent);\r\n```"}}
{"actor":{"display_login":"ilkkahanninen"}}