{"action":"created","issue":{"url":"https://api.github.com/repos/joshwnj/react-starter/issues/5","repository_url":"https://api.github.com/repos/joshwnj/react-starter","labels_url":"https://api.github.com/repos/joshwnj/react-starter/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/joshwnj/react-starter/issues/5/comments","events_url":"https://api.github.com/repos/joshwnj/react-starter/issues/5/events","html_url":"https://github.com/joshwnj/react-starter/issues/5","id":215045896,"number":5,"title":"Tutorial 2 - passing actions to the functional component","user":{"login":"mccrodp","id":559938,"avatar_url":"https://avatars0.githubusercontent.com/u/559938?v=3","gravatar_id":"","url":"https://api.github.com/users/mccrodp","html_url":"https://github.com/mccrodp","followers_url":"https://api.github.com/users/mccrodp/followers","following_url":"https://api.github.com/users/mccrodp/following{/other_user}","gists_url":"https://api.github.com/users/mccrodp/gists{/gist_id}","starred_url":"https://api.github.com/users/mccrodp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mccrodp/subscriptions","organizations_url":"https://api.github.com/users/mccrodp/orgs","repos_url":"https://api.github.com/users/mccrodp/repos","events_url":"https://api.github.com/users/mccrodp/events{/privacy}","received_events_url":"https://api.github.com/users/mccrodp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-17T15:56:58Z","updated_at":"2017-03-31T06:35:58Z","closed_at":"2017-03-31T06:25:46Z","body":"As mentioned in another question I believe, most examples are based on React.Component, so I read [React.createClass versus extends React.Component](https://toddmotto.com/react-create-class-versus-component/).\r\n\r\nMost of the examples I've found incl. some of our internal apps on this are using Redux for state / reducers for actions, etc. I'm having trouble identifying what documentation I should be reading for this. Am I trying to \"pass actions to a functional component\"?\r\n\r\nOne of our internal apps is more similar to this and I believe we may need to `import` the actions from the other component `import * as actions from 'actions'` and then access via `actions.functionName()`, but just looking for clarification on the most fundamental method to achieve the end goal here.\r\n\r\nI've commit [what I have so far](https://github.com/mccrodp/react-starter/tree/tutorial-2-start), but it's a bit bare as most of the work so far was research. Appreciate any tips or documentation links relevant for this example without Redux and the extra baggage. \r\n\r\nThanks @joshwnj!"},"comment":{"url":"https://api.github.com/repos/joshwnj/react-starter/issues/comments/290629496","html_url":"https://github.com/joshwnj/react-starter/issues/5#issuecomment-290629496","issue_url":"https://api.github.com/repos/joshwnj/react-starter/issues/5","id":290629496,"user":{"login":"joshwnj","id":36711,"avatar_url":"https://avatars0.githubusercontent.com/u/36711?v=3","gravatar_id":"","url":"https://api.github.com/users/joshwnj","html_url":"https://github.com/joshwnj","followers_url":"https://api.github.com/users/joshwnj/followers","following_url":"https://api.github.com/users/joshwnj/following{/other_user}","gists_url":"https://api.github.com/users/joshwnj/gists{/gist_id}","starred_url":"https://api.github.com/users/joshwnj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshwnj/subscriptions","organizations_url":"https://api.github.com/users/joshwnj/orgs","repos_url":"https://api.github.com/users/joshwnj/repos","events_url":"https://api.github.com/users/joshwnj/events{/privacy}","received_events_url":"https://api.github.com/users/joshwnj/received_events","type":"User","site_admin":false},"created_at":"2017-03-31T06:35:58Z","updated_at":"2017-03-31T06:35:58Z","body":"> We are creating a prop onTextChange and passing the whole this.onTextChange method as part of that prop\r\n\r\nexactly! nicely done :)"}}
{"actor":{"display_login":"joshwnj"}}