constructor(){
super()
this.state = {
countDown: 6
}}
componentDidMount(){
this.myInterval = setInterval(() =>{
browserhistory.push("/time-up")componentDidUpdate(){
if(this.state.countDown === 0){
browserHistory.push("/time-up");
}
}
//I want to redirect the user to a page called "time up" when the countdown gets to zero in the componentDidUpdate lifecycle