@thedeftone@deutschbitte@SoundCloudDev Haha tbh, I also only stole the idea so... :homer-slowly-disappearing^2: Pinging @garriguv because at the time I believe he introduced it in our team
@brian_d_vaughn As an example, there's react-toggled by @kentcdodds: https://t.co/EDlHZ5uiNc …
You can render the Toggle component and it uses internal state by default. But you can also control the toggle state by using the `on` control-prop.
@brian_d_vaughn Tbh, I always thought that it's a good practice for any kind of stateful component because it makes them immediately useful. And then once people _want_ to control the state they can still opt-in for that by using control-props. But now I'm not so sure about that anymore. 🤔
@kentcdodds@kentcdodds talking about context and toggle components though... what do you think about this?
https://t.co/p7IMdfCmhH
Obviously very much influenced by react-toggled. Hope you don't mind that I shamelessly copied the API. Just wanted it to feel familiar to people...