1. 7
    Create a New Map in React Leaflet using the Components TileLayer and Map
    1m 2s

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

Share this video with your friends

Send Tweet

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