MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / onClick

Method onClick

src/NavLink.js:34–47  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

32 }
33
34 onClick(e) {
35 if (this.props.disabled) {
36 e.preventDefault();
37 return;
38 }
39
40 if (this.props.href === '#') {
41 e.preventDefault();
42 }
43
44 if (this.props.onClick) {
45 this.props.onClick(e);
46 }
47 }
48
49 render() {
50 let {

Callers 2

ButtonToggleFunction · 0.45
ButtonFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected