MCPcopy
hub / github.com/ctrlplusb/react-sizeme / constructor

Method constructor

src/component.js:13–23  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

11 }
12
13 constructor(props) {
14 super(props)
15 const { children, render, ...sizeMeConfig } = props
16 this.createComponent(sizeMeConfig)
17 this.state = {
18 size: {
19 width: undefined,
20 height: undefined,
21 },
22 }
23 }
24
25 componentDidUpdate(prevProps) {
26 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected