{"action":"opened","issue":{"url":"https://api.github.com/repos/loggur/react-redux-provide/issues/20","repository_url":"https://api.github.com/repos/loggur/react-redux-provide","labels_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/20/comments","events_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/20/events","html_url":"https://github.com/loggur/react-redux-provide/issues/20","id":146798695,"number":20,"title":"Vagueness in documentation?","user":{"login":"adamdonahue","id":2406542,"avatar_url":"https://avatars.githubusercontent.com/u/2406542?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdonahue","html_url":"https://github.com/adamdonahue","followers_url":"https://api.github.com/users/adamdonahue/followers","following_url":"https://api.github.com/users/adamdonahue/following{/other_user}","gists_url":"https://api.github.com/users/adamdonahue/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdonahue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdonahue/subscriptions","organizations_url":"https://api.github.com/users/adamdonahue/orgs","repos_url":"https://api.github.com/users/adamdonahue/repos","events_url":"https://api.github.com/users/adamdonahue/events{/privacy}","received_events_url":"https://api.github.com/users/adamdonahue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T02:45:54Z","updated_at":"2016-04-08T02:45:54Z","closed_at":null,"body":"First off, this looks promising.  Nice work.\r\n\r\nI did a quick read through of the tutorial, and one thing is unclear to me: in the example you are calling the action creators directly as part of the `onClick` action on the buttons, but it's not immediately clear how these are hooked up to the redux `dispatch` function, particularly in the case where you want to pass parameters to the action creators.  \r\n\r\nFor example, if I have\r\n\r\n```\r\nrender() {\r\n  return <button onClick={this.props.increment}>Increment</button>;\r\n}\r\n```\r\n\r\nhow is this in turn dispatched to redux, and how would you handle the dynamic passing of arguments to the action creator?  My guess without looking at the source code is that you wrap each action creator in a parent function that first calls the real action creator and then issues a dispatch, but again it's a bit confusing in that, for a basic `onClick` handler, at least, the first parameter is going to be the event object, not a `by` parameter, unless you're somehow dealing with that as well.\r\n\r\nAnyhow, I was hoping you could clarity this confusion on my part.\r\n\r\nThanks.\r\n\r\nAdam"}}