I hate functions as React children so much. Just use an attribute. So much cleaner and you're not messing with types.
-
-
Libs like Preact (iirc it always return an array cc
@_developit). It's not clear how the callback is going to be invoked, especially w/ args -
react-virtualized uses child functions for some of the decorator components and it works nicely with Preact.
- 3 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 
