I hate functions as React children so much. Just use an attribute. So much cleaner and you're not messing with types.
-
-
<Measure onChange={x => this.setState({ size: x })}> my size is {this.state.size} </Measure>
-
With function it could be (almost) <Measure>{x => `my size is ${x}`}</Measure>
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 
