As part of our adoption of Elm in production, Gizra devs are learning and practicing their Elm skills.
After they are done going over the existing videos/tutorials, we let them get their hands dirty. elm-hedley was created just for that - to simulate a simple yet typical web app with login, RESTful, etc.
Here’s the existing app. As you see each event appears as a clickable link.
The challenge is to add a counter next to each event label that increments when clicked. When you refresh the page (F5) it shouldn’t remember the previous clicks and should start back at 0.
In short, it should look like this (notice the bottom left list):
Go ahead, fork the repo and try for yourself. And don’t peek below, as it has the answer!
. . . . .
Ok, if you reached this part it means you are looking for the answer… So, here’s the guided video which beginners might appreciate, as it explains not only the code but also the approach to solving the task. And here’s the final code.