Thursday, July 19, 2018

javascript - Cannot find reason: React: Redirects onclick does not work but other redirects work(Link works and history.push also works)

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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...