Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 727 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 727 Bytes

React + Mapbox Example

React + Mapbox example to display Minnesota's eight congressional districts. This project is an example of how to display data in geojson format in Mapbox utilizing React hooks. This project is also bootstrapped with Create React App.

Usage

Create a Mapbox user account and Mapbox API token at Mapbox

Clone the repository to your local machine

Add your Mapbox API Token to the global variable in the .env file

  • REACT_APP_MAPBOX_KEY=YOUR_MAPBOX_KEY

Install node modules

  • npm install

Run the project

  • npm start a new browser window will appear running the project.