React Leaflet's core APIs are implemented in the
@react-leaflet/core package to provide a separation from the public APIs.
The goal of this package is to make most of React Leaflet's internal logic available to developers to easily implement custom behaviors, such as third-party Leaflet plugins.
You might want to learn about the core APIs if you want to:
- Customize how public components work, by creating an alternative implementation matching your needs
- Implement new components not provided by React Leaflet
- Simply learn more about how React Leaflet works
@react-leaflet/core package is a dependency of the
react-leaflet one. The main installation steps from the getting started documentation should be followed to use the core APIs.
All the core APIs can be imported from the
@react-leaflet/core package, such as
The following page presents the architecture and usage in more details.