totally minor typo in readme

I enjoy reading it! keep up the good work!
This commit is contained in:
Oliver Eidel 2016-02-28 00:12:06 +01:00
parent 2c2c1c6612
commit 2a36dd99ca

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.