I want to open a page when a button is pressed in React js : I am creating a function in react js where a user will be redirected to the dashboard when he click sign in.

handleSubmit(){
         
         this.props.history.push('/blog-overview');  
    }
When i click on the button, the page is refreshed rather than redirecting to that path specified.