Skip to main content
100%

Elm HTTP Example w/ability to change input

✓ Published0🌍 Public
CCliffordAnderson
Last edited Feb 16, 2018
Created on Feb 16, 2018

This example demonstrates an Elm application that fetches and displays random GIFs from the Giphy API, with a text input allowing users to change the search topic. The interface shows a button to request another GIF and an image element that updates with each new result. The code uses Elm’s `Http` module with a `Json.Decode` pipeline to extract the `image_url` field from the API’s JSON response, and Bootstrap CDN styles via the `Bootstrap.CDN` and `Bootstrap.Grid` modules. The application’s architecture follows Elm’s standard Model-Update-View pattern, managing state through messages like `MorePlease` and `Change`.

AI-generated description

Similar vizzes