github PaulLeCam/react-leaflet v3.0.0

latest releases: v4.2.1, v4.2.0, v4.1.0...
3 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 modern 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

Don't miss a new react-leaflet release

NewReleases is sending notifications on new releases.