This is the repo for part 1 of my tutorial on creating maps with React and D3, which you can read here: https://hankthemason.medium.com/build-a-map-of-nycs-police-precincts-with-react-d3-part-1-ae4b433def5c
In this tutorial, I take you through the steps of setting up a new React app, finding GeoJSON map data, and using D3 to render that data into a map in your React app.
Git clonethe repo- Navigate to the directory.
- Run
npm run startoryarn start, and then navigate to http://localhost:3000 in your web browser.
GeoJSON of NYC police precincts: https://hub.arcgis.com/datasets/DCP::nyc-police-precincts
ProPublica's database: https://projects.propublica.org/nypd-ccrb/