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 modern browsers)
- Switch to the Hippocratic License
- The
Mapcomponent is replaced byMapContainer, behaving differently - Event handlers must be attached using the
eventHandlers proprather thanon*props, with a similar change for path options and WMS params - The
react-leafletpackage 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