At the bottom of p.87, to finish things off, we still need to update the function message-form to define the errors atom -
errors (r/atom nil)
and pass it as a parameter where we are using send-message! as our :on-click handler:
:on-click #(send-message! fields errors)