Skip to content

v2.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@PaulLeCam PaulLeCam released this 26 May 15:35
· 257 commits to master since this release
v2.0.0-beta.1
886b2ba

First beta for v2, with a few breaking changes. Plugins and custom components will likely need to be updated to use the new context API.

It can be installed from npm using the next tag: yarn add react-leaflet@next.
A new CodePen is also available: https://codepen.io/PaulLeCam/pen/gzVmGw

Changes

  • [BREAKING] Updated React dependency to v16.3.
  • [BREAKING] Replaced React context usage with new APIs introduced in React v16.3.
  • [BREAKING] Removed PropTypes.
  • [BREAKING] Dropped support for IE < 11.
  • React Portals are now used to render the DivOverlay and therefore Popup and Tooltip components, enabling context propagation (PR #475 by hannesj).
  • Replaced wrapping div elements with Fragment.