MCPcopy Create free account
hub / github.com/ctrlplusb/react-tree-walker / componentWillMount

Method componentWillMount

src/__tests__/index.test.js:139–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 componentWillMount() {
140 this.setState({ foo: 'bar' })
141 this.setState((state, props) => ({
142 other: `I am ${props.value} ${state.foo}`,
143 }))
144 }
145
146 render() {
147 actual = this.state

Callers 1

recursiveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected