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

Method render

src/component.js:47–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 onSize = (size) => this.setState({ size })
46
47 render() {
48 const { SizeAware } = this
49 const render = this.props.children || this.props.render
50 return (
51 <SizeAware onSize={this.onSize}>
52 {render({ size: this.state.size })}
53 </SizeAware>
54 )
55 }
56}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected