All the other redirects (conditional redirects) work perfectly but not the one in the button
(using works perfectly fine)
Doesnot redirect when the button is clicked
I have implemented one more redirect in another page on a button click and it works perfectly fine
render() {
const { props } = this
if (this.props.isauthed) {
if (this.state.usertype == 'user') {
return
} else {
if (this.state.usertype == 'customer') {
return
} else {
return (
)
}
}
} else {
return
}
}
No comments:
Post a Comment