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

Function componentWillReceiveProps

component/Tab.js:26–33  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

24 },
25
26 componentWillReceiveProps(nextProps) {
27 const {current} = this.props;
28 if (nextProps.current !== current) {
29 this.setState({
30 current: nextProps.current
31 });
32 }
33 },
34
35 makeTab(){
36 let {children, style, className} = 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…