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

Method getDerivedStateFromProps

src/__tests__/index.test.js:196–198  ·  view source on GitHub ↗
(props, state)

Source from the content-addressed store, hash-verified

194 }
195
196 static getDerivedStateFromProps(props, state) {
197 return { foo: `${state.foo}bar` }
198 }
199
200 render() {
201 actual = this.state

Callers 1

recursiveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected