react-leaflet v3.0.0-beta.1 Release Notes

Release Date: 2020-07-12 // almost 4 years ago
  • v3 is a full rewrite of React Leaflet and contains breaking change from v2.

    • ๐Ÿ“„ Full rewrite based on React Hooks (no more extending Component)
    • Replace Flow by TypeScript for type checking
    • โฌ‡๏ธ Drop IE support (Babel config will only target the "last 2 versions" of browsers)
    • Switch to the Hippocratic License
    • ๐Ÿ“„ The Map component is replaced by MapContainer, behaving differently
    • ๐Ÿ“„ Event handlers must be attached using the eventHandlers prop rather than on* props, with a similar change for path options and WMS params
    • ๐Ÿ“ฆ The react-leaflet package only exposes a public API while a new package, @react-leaflet/core, is used to provide the core APIs
    • ๐Ÿ“š A new documentation website using Docusaurus v2 with live examples, currently published on react-leaflet-v3.now.sh