aaronshaf / react-toggle

Elegant, accessible toggle component for React. Also a glorified checkbox.
http://aaronshaf.github.io/react-toggle/
MIT License
945 stars 159 forks source link

update to componentDidUpdate instead of will receive props #140

Closed kelly-tock closed 4 years ago

kelly-tock commented 5 years ago

removed deprecated willReceiveProps and switched to didUpdate

ran prettier.

kelly-tock commented 5 years ago

is this repo active?

pkibbey commented 4 years ago

Good question. It's a really useful component, so I hope that this stays updated.

kelly-tock commented 4 years ago

I may have to fork it, will post here if so.

aaronshaf commented 4 years ago

@kelly-tock, thanks for the PR. I added you as a collaborator.

kelly-tock commented 4 years ago

awesome!

kelly-tock commented 4 years ago

when do you think you'll publish a new version to npm?

aaronshaf commented 4 years ago

I just did so now. Do you have an npm user account?

kelly-tock commented 4 years ago

yes, I do. I see you bumped the version. did you want me to publish it? not seeing update on npm landing page for this module.

aaronshaf commented 4 years ago

The CLI says 4.1.1 is published, but it's not updated on https://www.npmjs.com/package/react-toggle yet.

kelly-tock commented 4 years ago

coolio, yeah sometimes it takes a bit!

JackHowa commented 4 years ago

Nice -- it's working for me! Thanks