I have a route which redirects after checking a condition like this
(
Store.isFirstTime ?
you can try this way like:
first: import "withRouter" to component like this:
import { withRouter } from "react-router-dom";
then at the end of your component export compoenent like this:
export default withRouter(VerifyCode);
and then you can add this code to your function:
verify(e) {
// after sever get 200
this.props.history.push('/me/');
}
good luck