()
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected