Is it a useful way to separate look-and-feel concerns from functional concerns, or is it just another layer of indirection?
Is it a useful way to separate look-and-feel concerns from functional concerns, or is it just another layer of indirection?
Another example of this pattern is `downshift`, which is a headless autocomplete library: https://github.com/downshift-js/downshift
I would love to see a datepicker component that used this design. I have some choice words for the various datepicker libs I've used over my career and none of them are friendly.
The best reusable components are the ones that have exactly one look, which you're fine with, and are just plug in and go.
None of that is a problem with the logic behind the component though, just the display. So for something complex that has a bunch of logic behind it, it's a real nice idea to just be able to reuse that logic and whack some html and css over the top of it instead of having to read some 6 page doc every time you want to increase the width of a border or something.