diff --git a/modules/Link.js b/modules/Link.js index 35ca51c908..1b722fe934 100644 --- a/modules/Link.js +++ b/modules/Link.js @@ -77,15 +77,6 @@ class Link extends React.Component { this.context.history.pushState(this.props.state, this.props.to, this.props.query) } - componentWillMount() { - warning( - this.context.history, - 'A should not be rendered outside the context of history ' + - 'some features including real hrefs, active styling, and navigation ' + - 'will not function correctly' - ) - } - render() { const { history } = this.context const { activeClassName, activeStyle, onlyActiveOnIndex, to, query, state, onClick, ...props } = this.props