componentDidMount to componentWillMount