import React from 'react';

class HomeContainer extends React.Component {
    static contextTypes = {
        router: React.PropTypes.object.isRequired
    };

    componentDidMount() {
        this.context.router.push('/');
    };

    render() {
        return (<span></span>);
    };
}

export default HomeContainer;

import React from 'react';
import PropTypes from 'prop-types';

class HomeContainer extends React.Component {
    static contextTypes = {
        router: PropTypes.object.isRequired
    };

    componentDidMount() {
        this.context.router.push('/');
    };

    render() {
        return (<span></span>);
    };
}

export default HomeContainer;

Replace use of React.PropTypes with version from ‘prop-types’
Replace use of React.PropTypes with version from ‘prop-types’
