Course lesson

Create a New Map in React Leaflet using the Components TileLayer and Map

The first thing we need to do is actually add our map. We already installed our dependencies, so now it's a matter of using them to import our components.

Duration
1 min
Access
Pro
Transcript
Available

The first thing we need to do is actually add our map. We already installed our dependencies, so now it's a matter of using them to import our components.

There are 2 primary components that we'll need to use:

  • Map
  • TileLayer

We'll import these components from React Leaflet and use them to create our map.

Click here for exercise instructions