mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 07:18:22 +00:00
totally minor typo in readme
I enjoy reading it! keep up the good work!
This commit is contained in:
parent
2c2c1c6612
commit
2a36dd99ca
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user