I want to disable Link in some condition:
Link
render() { return ({this.props.canClick ? Test
I think you should you atrribute to=null to set disable a link.
<Link to=null />
Your code:
render() { return (<li> <Link to={this.props.canClick?'/goto-a-link':null} >Test</Link> </li>) }