markusenglund / react-switch

A draggable toggle-switch component for React. Check out the demo at:
https://react-switch.netlify.com/
MIT License
1.33k stars 100 forks source link

Rewrite for Hooks / React 16.8? #51

Closed djD-REK closed 5 years ago

djD-REK commented 5 years ago

Hi, Your component has the best functionality I've found in react switches or toggles. Is it possible to use it as-is using hooks? Is there a plan to include hooks support in the future? Thanks!!!

markusenglund commented 5 years ago

Yeah, it's definitely possible. I'll make sure to add an example using hooks in the demo for the next release.

usamamashkoor commented 4 years ago

@markusenglund can we use it for React Hooks now?