Merge pull request #374 from Grahack/patch-7

Add a summary to docs/Effects.md
This commit is contained in:
Mike Thompson 2017-07-16 19:36:36 +10:00 committed by GitHub
commit b846427ba0
1 changed files with 7 additions and 1 deletions

View File

@ -282,8 +282,14 @@ registered handlers) to which you can return.
### Summary
XXX
The 4 Point Summary
In note form:
1. Event handlers should only return effect declaratively
2. They return a map like `{:effect1 value1 :effect2 value2}`
3. Keys of this map can refer to builtin effects handlers (see below) or custom ones
4. We use `reg-fx` to register our own effects handlers
### Builtin Effect Handlers