react-switch v5.0.0 Release Notes
Release Date: 2019-04-22 // about 5 years ago-
โ Added
- It's now possible to give the Switch any prop (such as aria-* props or tabIndex) and it will automatically be passed to the nested
input
-element. - ๐ Improved Typescript compatibility by using
exports:named
option in rollup. This could possibly be breaking for some obscure setups.
๐ Changed
- โก๏ธ Replaced deprecated
componentWillReceiveProps
lifecycle hook withcomponentDidUpdate
, which means it now works in strict mode.
๐ Fixed
- Now works properly with right-to-left languages.
- It's now possible to give the Switch any prop (such as aria-* props or tabIndex) and it will automatically be passed to the nested