David Schnurr
1 min readJan 9, 2019

--

Compounds + render props works quite well for simple components (and we actually use this some places in our project) but it starts to fall apart for more complicated components. For example, a Datepicker can have numerous internal components — if I just want a standard datepicker with a couple of style overrides, it might be overkill to wire up all the datepicker internals with render props, just so I can tweak a couple styles.

--

--

David Schnurr
David Schnurr

Written by David Schnurr

Engineering at OpenAI. Building products, tools, and data visualizations.

Responses (1)