{"action":"created","issue":{"url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/issues/139","labels_url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/issues/139/comments","events_url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/issues/139/events","html_url":"https://github.com/shakacode/react-webpack-rails-tutorial/issues/139","id":114362419,"number":139,"title":"Switch to ES6 Class syntax for React from ES5 React.createClass","user":{"login":"justin808","id":1118459,"avatar_url":"https://avatars.githubusercontent.com/u/1118459?v=3","gravatar_id":"","url":"https://api.github.com/users/justin808","html_url":"https://github.com/justin808","followers_url":"https://api.github.com/users/justin808/followers","following_url":"https://api.github.com/users/justin808/following{/other_user}","gists_url":"https://api.github.com/users/justin808/gists{/gist_id}","starred_url":"https://api.github.com/users/justin808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justin808/subscriptions","organizations_url":"https://api.github.com/users/justin808/orgs","repos_url":"https://api.github.com/users/justin808/repos","events_url":"https://api.github.com/users/justin808/events{/privacy}","received_events_url":"https://api.github.com/users/justin808/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"rstudner","id":209970,"avatar_url":"https://avatars.githubusercontent.com/u/209970?v=3","gravatar_id":"","url":"https://api.github.com/users/rstudner","html_url":"https://github.com/rstudner","followers_url":"https://api.github.com/users/rstudner/followers","following_url":"https://api.github.com/users/rstudner/following{/other_user}","gists_url":"https://api.github.com/users/rstudner/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudner/subscriptions","organizations_url":"https://api.github.com/users/rstudner/orgs","repos_url":"https://api.github.com/users/rstudner/repos","events_url":"https://api.github.com/users/rstudner/events{/privacy}","received_events_url":"https://api.github.com/users/rstudner/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2015-10-30T21:53:39Z","updated_at":"2015-11-01T17:51:57Z","closed_at":"2015-11-01T17:51:57Z","body":"@alexfedoseev will comment some more on the reasons we should do this.\r\n\r\nAny volunteers for converting the code?\r\n\r\n@robwise We'll be updating the generator to support this."},"comment":{"url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/issues/comments/152848627","html_url":"https://github.com/shakacode/react-webpack-rails-tutorial/issues/139#issuecomment-152848627","issue_url":"https://api.github.com/repos/shakacode/react-webpack-rails-tutorial/issues/139","id":152848627,"user":{"login":"rstudner","id":209970,"avatar_url":"https://avatars.githubusercontent.com/u/209970?v=3","gravatar_id":"","url":"https://api.github.com/users/rstudner","html_url":"https://github.com/rstudner","followers_url":"https://api.github.com/users/rstudner/followers","following_url":"https://api.github.com/users/rstudner/following{/other_user}","gists_url":"https://api.github.com/users/rstudner/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudner/subscriptions","organizations_url":"https://api.github.com/users/rstudner/orgs","repos_url":"https://api.github.com/users/rstudner/repos","events_url":"https://api.github.com/users/rstudner/events{/privacy}","received_events_url":"https://api.github.com/users/rstudner/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T17:51:57Z","updated_at":"2015-11-01T17:51:57Z","body":"You can do:\r\n```\r\n_handleSomething = (e, f) => {\r\n}\r\n```\r\netc.\r\n\r\nAs well, changing the initial state from constructor based to:\r\n```\r\nclass CommentForm extends React.Component {\r\n  formMode = 0;\r\n  comment =  emptyComment;\r\n```\r\nsimply results in the console error:\r\nUncaught TypeError: Cannot read property 'formMode' of null\r\nfor the code\r\n```\r\n switch (this.state.formMode) {\r\n```\r\nI'll go ahead and just close this PR since 3 approaches have been 'wrong' for style reasons and once people decide on how code should 'look' we can move forward on it.\r\n\r\n\r\n\r\n"}}