MCPcopy Create free account
hub / github.com/flyfloor/react-component / handleItemClick

Function handleItemClick

component/Tab.js:18–24  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

16 },
17
18 handleItemClick(index){
19 const {onChange} = this.props;
20 if (onChange) onChange(index);
21 this.setState({
22 current: index,
23 });
24 },
25
26 componentWillReceiveProps(nextProps) {
27 const {current} = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…