Update part of readme to 0.8.0

As suggested in Issue #224
This commit is contained in:
Shaun Mahood 2016-09-02 11:36:14 -06:00
parent 04d0a9e9af
commit d6d826fea0

View File

@ -962,9 +962,11 @@ then to register those handlers with the router.
Here's how we would register our event handler:
```Clojure
(reg-event-pure
:delete-item ;; the event id (name)
handle-delete) ;; the handler function for that event
(reg-event-db
:delete-item ;; the event id (name)
(fn [db [_ item]] ;; the handler function for that event
...
)
```
Any arriving event vector which has `:delete-item` as the first element will now be routed to our handler.