foursquare / fsq-studio-sdk-examples

Foursquare Studio is a platform to visualize, unify, enrich, and analyze spatial data on a planetary scale.
https://studio.foursquare.com
MIT License
20 stars 12 forks source link

Set up a basic example #66

Closed abstractalgo closed 1 year ago

abstractalgo commented 1 year ago

Adding a basic React example.

abstractalgo commented 1 year ago

I agree with you - there are now three times as many config files as there are source files; not great. We'll see what we can do (e.g. remove eslint and use something with simple configs like Bun, instead of Vite).

We chose React as a go-to foundation for examples (instead of pure JS) for a couple of reasons:

This choice did come at the cost of extra boilerplate and configuration. However, because we have control of which file to focus on inside StackBlitz embeds that we'll be using for docs, this can still keep the noise outside, and only draw attention to where it's really needed.


As you saw in the other PR, providing an alternative JS-and-HTML-only example is also a good thing, to offer simplicity to those who seek it.