react-mapbox-components

Mapbox library converted to react for use with react-leaflet.

Usage no npm install needed!

<script type="module">
  import reactMapboxComponents from 'https://cdn.skypack.dev/react-mapbox-components';
</script>

README

react-mapbox-components

Mapbox library converted for use with react and react-leaflet.

npm i react-mapbox-components

Components offered

View usage / example documentation

Edit examples/config.js and fill in your Mapbox API key to see the examples and code samples.

npm run view-docs

Development (lint / livereload)

npm run dev

  • transpiles src/ to dist/
  • generates styleguide documentation into artifacts/docs/style-guide/