Merge pull request #155 from olieidel/master

Fix minor typo in README
This commit is contained in:
Mike Thompson 2016-02-29 11:03:41 +11:00
commit 4b3e59950f
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ With `Form-2` components, there's a function returning a function:
(defn my-cmp [row-id]
(let [row-state (subscribe [row-id])]
(fn [row-id]
[div (str "Row: " row-id " is " @row-state)])))
[:div (str "Row: " row-id " is " @row-state)])))
```
In this example, `[my-cmp 1][my-cmp 2]` will create two instances of `my-cmp`. Each instance will re-render when its internal `row-state` signal changes.