{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react/issues/6598","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/6598/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/6598/comments","events_url":"https://api.github.com/repos/facebook/react/issues/6598/events","html_url":"https://github.com/facebook/react/issues/6598","id":150647347,"number":6598,"title":"context undefined while use ES6 constructor","user":{"login":"shenyzore","id":1438697,"avatar_url":"https://avatars.githubusercontent.com/u/1438697?v=3","gravatar_id":"","url":"https://api.github.com/users/shenyzore","html_url":"https://github.com/shenyzore","followers_url":"https://api.github.com/users/shenyzore/followers","following_url":"https://api.github.com/users/shenyzore/following{/other_user}","gists_url":"https://api.github.com/users/shenyzore/gists{/gist_id}","starred_url":"https://api.github.com/users/shenyzore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenyzore/subscriptions","organizations_url":"https://api.github.com/users/shenyzore/orgs","repos_url":"https://api.github.com/users/shenyzore/repos","events_url":"https://api.github.com/users/shenyzore/events{/privacy}","received_events_url":"https://api.github.com/users/shenyzore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-24T10:23:56Z","updated_at":"2016-04-24T10:23:56Z","closed_at":null,"body":"All issue in the code:\r\n```\r\nimport React, { Component, PropTypes } from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Router, Route, Link, browserHistory } from 'react-router'\r\n\r\nexport default class App extends Component {\r\n    // If use constructor below this.context is undefined, \r\n    // otherwise comment the constructor statement this.context not null\r\n    // Uncaught TypeError: Cannot read property 'router' of undefined\r\n    router = this.context.router;\r\n    constructor (props) {\r\n        super(props);\r\n        console.log(this);\r\n    }\r\n    render () {\r\n        return <span>ReactDemo</span>\r\n    }\r\n    static contextTypes = {\r\n        router: PropTypes.object.isRequired\r\n    };\r\n}\r\n\r\nReactDOM.render((\r\n    <Router history={browserHistory}>\r\n        <Route path=\"/\" component={App}/>\r\n    </Router>\r\n), document.getElementById('root'));\r\n```\r\nThe react versioin is 15.0.1,i remember a previous version without this problem.\r\nIs this a bug or the usage of my problem?\r\nHere is my demo git:\r\n`https://github.com/shenyzore/react-demo.git`\r\nThanks!"}}