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

Method constructor

alarm/src/App.js:58–62  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

56
57class Clockclass extends React.Component{
58 constructor(props){
59 super(props)
60
61 this.state={date:new Date()};
62 }
63 componentDidMount(){
64 this.timerID=setInterval(()=>(this.setState({date:new Date()})),1000)
65 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected