This is the accompanying code example for my post on Medium.
Contained within is a minimal example of using JSONP with Elm 0.19. Just a little bit of Elm with a dash of regular JavaScript.
- Download and install Elm 0.19.
- Clone this repo.
- Run
elm make
from a terminal at the root of this directory. - When the compile finishes, run
elm reactor
and open up index.html in your browser.
If you don't want to recompile or run into issues, the compiled versions are already included in this repo; just skip step #3.
Kudos to Rogério Chaves for the inspiration and a starting point!