Button state as props
mbahoshy opened this issue · 2 comments
mbahoshy commented
Hey there, great component. I do have one suggestion though, it would be really nice to change button state through props instead of having to use ref to keep track. I am using this in my own project and wrote a simple wrapper to do just that. Here is a gist of what I'm using in a project
https://gist.github.com/mbahoshy/a67e02dfc8d146753cc2
(it is not using all of the props you offer, just the few I need... but you'll get the idea)
mathieudutour commented
You can already do that using the state
prop. Or am I misunderstanding?
mbahoshy commented
Totally missed that in the readme, thanks