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
DivOverlayand thereforePopupandTooltipcomponents, enabling context propagation (PR #475 by hannesj). - Replaced wrapping
divelements withFragment.