{"action":"created","issue":{"url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/90","labels_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/90/comments","events_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/90/events","html_url":"https://github.com/chentsulin/electron-react-boilerplate/issues/90","id":120620958,"number":90,"title":"initialState not working","user":{"login":"iDuuck","id":325241,"avatar_url":"https://avatars.githubusercontent.com/u/325241?v=3","gravatar_id":"","url":"https://api.github.com/users/iDuuck","html_url":"https://github.com/iDuuck","followers_url":"https://api.github.com/users/iDuuck/followers","following_url":"https://api.github.com/users/iDuuck/following{/other_user}","gists_url":"https://api.github.com/users/iDuuck/gists{/gist_id}","starred_url":"https://api.github.com/users/iDuuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iDuuck/subscriptions","organizations_url":"https://api.github.com/users/iDuuck/orgs","repos_url":"https://api.github.com/users/iDuuck/repos","events_url":"https://api.github.com/users/iDuuck/events{/privacy}","received_events_url":"https://api.github.com/users/iDuuck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-06T09:27:30Z","updated_at":"2015-12-06T09:46:42Z","closed_at":null,"body":"Hey,\r\nI just googled me through the ES6 + React stuff. To set the `initialState` I just tried using the constructor of the Component like so:\r\n```es6\r\nconstructor(props) {\r\n    super(props);\r\n    this.state = { focused: false };\r\n  }\r\n```\r\nAnd also tried:\r\n```es6\r\nconstructor(props) {\r\n    super(props);\r\n    this.setState({ focused: false });\r\n  }\r\n```\r\n\r\nEven if I put a simple `console.log` into the `constructor` it is not working and the constructor isn't called. What's the matter with this?"},"comment":{"url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/comments/162292163","html_url":"https://github.com/chentsulin/electron-react-boilerplate/issues/90#issuecomment-162292163","issue_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/90","id":162292163,"user":{"login":"iDuuck","id":325241,"avatar_url":"https://avatars.githubusercontent.com/u/325241?v=3","gravatar_id":"","url":"https://api.github.com/users/iDuuck","html_url":"https://github.com/iDuuck","followers_url":"https://api.github.com/users/iDuuck/followers","following_url":"https://api.github.com/users/iDuuck/following{/other_user}","gists_url":"https://api.github.com/users/iDuuck/gists{/gist_id}","starred_url":"https://api.github.com/users/iDuuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iDuuck/subscriptions","organizations_url":"https://api.github.com/users/iDuuck/orgs","repos_url":"https://api.github.com/users/iDuuck/repos","events_url":"https://api.github.com/users/iDuuck/events{/privacy}","received_events_url":"https://api.github.com/users/iDuuck/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T09:46:42Z","updated_at":"2015-12-06T09:46:42Z","body":"Sorry: And if I am `log`ing the `this.state` object in the `constructor` it is not `log`ed in the console neither."}}