Skip to content

Commit a261a05

Browse files
committed
mention about usage in Respo
1 parent 4424a7d commit a261a05

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@ ctrl shift up
5353
ctrl shift down
5454
```
5555

56+
### Use in Respo
57+
58+
It can be used in Respo Effects:
59+
60+
```clojure
61+
(defeffect
62+
effect-codearea
63+
()
64+
(action el)
65+
(when (= action :mount) (let [target (.querySelector el ".codearea")] (codearea target))))
66+
```
67+
68+
> Notice: a bug that codearea does not emit enough `input` events.
69+
5670
### Chinese Docs
5771

5872
上面`JS`的目标是给`<textarea>`标签增加基本的编程功能支持,

0 commit comments

Comments
 (0)