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 with componentDidUpdate, which means it now works in strict mode.

    ๐Ÿ›  Fixed

    • Now works properly with right-to-left languages.