Course lesson

Install Leaflet and react-leaflet with NPM in a JavaScript Project

While there are a few options for building maps, Leaflet is the most popular. Lucky for us, Leaflet is also available as a ReactJS component library with React Leaflet. We'll use both Leaflet and React Leaflet to build a map in our React app.

Duration
0 min
Access
Pro
Transcript
Available

While there are a few options for building maps, Leaflet is the most popular. Lucky for us, Leaflet is also available as a ReactJS component library with React Leaflet. We'll use both Leaflet and React Leaflet to build a map in our React app.

To get started, we need to install:

Leaflet (npmjs.com) and React Leaflet (npmjs.com)

Click here for exercise instructions