Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disable link react

render() {
    return (<li>
      <Link to="/" style={this.props.canClick ? {pointerEvents: "none"} : null}>Test</Link>
    </li>)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #link #react
ADD COMMENT
Topic
Name
8+1 =