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

Function componentDidMount

component/Notice.js:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 },
22
23 componentDidMount() {
24 const {delay, onClose} = this.props
25 if (delay !== 0) {
26 this._timer = setTimeout(() => {
27 this.clearTimer()
28 onClose()
29 }, delay)
30 }
31 },
32
33 componentWillUnmount() {
34 this.clearTimer()

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…