MCPcopy Create free account
hub / github.com/tomchentw/react-google-maps / componentWillMount

Method componentWillMount

src/withScriptjs.jsx:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 componentWillMount() {
41 const { loadingElement, googleMapURL } = this.props
42 invariant(
43 !!loadingElement && !!googleMapURL,
44 `Required props loadingElement or googleMapURL is missing. You need to provide both of them.`
45 )
46 }
47
48 componentDidMount() {
49 const { loadingState } = this.state

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected