A simple example of a nested list component in Elm v0.17
.
This example illustrates child to parent communication. The trick is to return a dispatch message from the child's update function and then do some pattern matching in the parent's update function to respond correctly to the dispatched message.
Credit to Petre Damoc for teaching me this in his example.
Install Elm and Node.js.
Run npm run build
and then open index.html
in a browser.