MCPcopy
hub / github.com/NervJS/nerv / constructor

Function constructor

packages/nerv/__tests__/lifecycle.spec.js:33–36  ·  view source on GitHub ↗
(p, c)

Source from the content-addressed store, hash-verified

31 let doRender
32 class Outer extends Component {
33 constructor (p, c) {
34 super(p, c)
35 this.state = { i: 0 }
36 }
37 componentDidMount () {
38 doRender = () => this.setState({ i: this.state.i + 1 })
39 }

Callers

nothing calls this directly

Calls 2

setStateMethod · 0.80
forceUpdateMethod · 0.80

Tested by

no test coverage detected