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 or at least add Usage section for functional component with useStateHook() #86

Closed kalmanh closed 3 years ago

kalmanh commented 4 years ago

to bring this into 21 Century (React time :))

If interested - I can work on a PR?

markusenglund commented 3 years ago

Hi, I will not rewrite the component itself as a functional component with hooks, but adding an example in the demo that uses a functional component is a good idea. I would accept a PR if you did one.

PS. I'll make sure to respond in a more timely manner.

markusenglund commented 3 years ago

I ended up adding it myself.

kalmanh commented 3 years ago

Still not seeing it. Did you not push it out to the repo yet?

VladimirTambovtsev commented 1 year ago

Can anyone update the docs, please?