Skip to main content
100%

My rewrite of the Field example on the Elm website (http://elm-lang.org/examples/field)

✓ Published0🌍 Public
CCliffordAnderson
Last edited Jul 11, 2016
Created on Jul 11, 2016

This example demonstrates a minimal text-reversal interface: as a user types into a text input, the displayed text is immediately shown in reverse order. The view renders an HTML `<input>` element and a `<div>` containing the reversed string, while the update function replaces the model with each new input. Built with Elm’s `Html`, `Html.App.beginnerProgram`, and `Html.Events.onInput`, the code uses `String.reverse` to transform the user’s input. No external libraries or data sources are involved; the model is simply a `String` that updates in real time.

AI-generated description

Similar vizzes