MCPcopy Create free account
hub / github.com/ReactTraining/react-broadcast / componentDidMount

Method componentDidMount

example/src/coords.js:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 componentDidMount() {
18 navigator.geolocation.watchPosition((geo) => {
19 this.setState({ geo })
20 })
21 }
22
23 render() {
24 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected