:unicorn: Learn how to build web apps using the Elm Architecture in "vanilla" JavaScript (step-by-step TDD tutorial)!
GNU General Public License v2.0
211
stars
19
forks
source link
Subscriptions: How to "Listen" for Events and What to do ... #57
Closed
nelsonic closed 6 years ago
In order to have "Event Listeners" (so users can hit the
[Enter]
Key to create a Todo Item #55) We need to add "Subscriptions" to Elm(ish). see: https://www.elm-tutorial.org/en/03-subs-cmds/01-subs.htmlTodo
subscriptions
... e.g:[Up]
&[Down]
keyboard key press increases/decreases the counter.subscriptions
parameter tomount
functionsubscriptions
inmount
depending on the outcome of initial researchrequired for: https://github.com/dwyl/learn-elm-architecture-in-javascript/issues/55