79
rated 0 times
[
84]
[
5]
/ answers: 1 / hits: 78867
/ 8 Years ago, tue, july 12, 2016, 12:00:00
I want to disable Link
in some condition:
render() {
return (<li>{this.props.canClick ?
<Link to=/>Test</Link> :
<a>Test</a>}
</li>)
}
<Link>
must specify to
, so I can not disable <Link>
and I have to use <a>
More From » reactjs