MCPcopy Create free account
hub / github.com/codemistic/Web-Development / componentDidMount

Method componentDidMount

alarm/src/App.js:63–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 this.state={date:new Date()};
62 }
63 componentDidMount(){
64 this.timerID=setInterval(()=>(this.setState({date:new Date()})),1000)
65 }
66 componentWillUnmount(){
67 clearInterval (this.timerID)
68 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected