React components for Leaflet maps.
React-Leaflet is an open-source reactjs project provides an abstraction of Leaflet as ⚛️ React components.
It does not replace Leaflet, only leverages ⚛️ React's lifecycle methods to call the relevant Leaflet handlers. You can read more information about the lifecycle process in the introduction page of this documentation. Please make sure you understand all the core concepts and limitations to evaluate if this library is appropriate for your needs.
This documentation only presents concepts specific to React-Leaflet, you should already be familiar with both React and Leaflet to use this library. Otherwise, please make sure to go through React and Leaflet's getting started guides and examples first.
Browser Support
On Desktop
- Chrome
- Firefox
- Safari 5+
- Opera 12+
- IE 7–11
On Mobile
- Safari for iOS 3–7+
- Android browser 2.2+, 3.1+, 4+
- Chrome for Android 4+ and iOS
- Firefox for Android
- Other webkit-based browsers (webOS, Blackberry 7+, etc.)
- IE10+ for Win8-based devices