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.
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.