I think you should replace componentWillMount due to https://reactjs.org/docs/react-component.html#unsafe_componentwillmount by using componentDidMount. It's always throw an error when using hot reload.