Fork me on GitHub
#vrac
<
2020-09-25
>
Vincent Cantin03:09:45

I will simplify the syntax for the events. Before:

(defc my-button [button-id text]
  [:button {:on-click (dispatch [:button-clicked button-id])} text])
After:
(defc my-button [button-id text]
  [:button {:on-click [:button-clicked button-id]} text])

Vincent Cantin04:09:03

Let me know if this sounds too strange or if I forgot something.