react-switch v5.0.1 Release Notes

Release Date: 2019-07-16 // 11 months ago
  • 🛠 Fixed

    • Minor typescript definition fix.

Previous changes from v5.0.0

  • ➕ 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.