I think the example in the readme is presented and worded in a confusing way, "Finally, we need to be able to react to any produced messages and change our state accordingly in our update logic:". Since your referencing the Elm architecture, it's 1. send msg, 2. update 3. view. This is presented, 1. 3. 2. The code looks right, but the example seems out of order and consequently confusing.