{"action":"opened","issue":{"url":"https://api.github.com/repos/sidrikblal/jammming/issues/1","repository_url":"https://api.github.com/repos/sidrikblal/jammming","labels_url":"https://api.github.com/repos/sidrikblal/jammming/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/sidrikblal/jammming/issues/1/comments","events_url":"https://api.github.com/repos/sidrikblal/jammming/issues/1/events","html_url":"https://github.com/sidrikblal/jammming/issues/1","id":320147670,"number":1,"title":"Using functions over classes for stateless components","user":{"login":"zannain","id":24375741,"avatar_url":"https://avatars3.githubusercontent.com/u/24375741?v=4","gravatar_id":"","url":"https://api.github.com/users/zannain","html_url":"https://github.com/zannain","followers_url":"https://api.github.com/users/zannain/followers","following_url":"https://api.github.com/users/zannain/following{/other_user}","gists_url":"https://api.github.com/users/zannain/gists{/gist_id}","starred_url":"https://api.github.com/users/zannain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zannain/subscriptions","organizations_url":"https://api.github.com/users/zannain/orgs","repos_url":"https://api.github.com/users/zannain/repos","events_url":"https://api.github.com/users/zannain/events{/privacy}","received_events_url":"https://api.github.com/users/zannain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-04T03:59:14Z","updated_at":"2018-05-04T03:59:14Z","closed_at":null,"author_association":"NONE","body":"If a component does not contain `state` or `ref` then there is no need to use an ES6 class. You can instead refactor the `SearchResults` class to\r\n\r\n```\r\nfunction SearchResults(props) {\r\n  return (\r\n    <div className=\"SearchResults\"> \r\n      <h2>Results</h2> \r\n      <TrackList tracks={props.searchResults} onAdd={props.onAdd} isRemoval='false'/>\r\n    </div>\r\n  )\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"zannain"}}