Improved text handling

This commit is contained in:
alonso.torres 2021-01-25 17:42:18 +01:00
parent 4513033634
commit 07d552c86b
2 changed files with 69 additions and 29 deletions

View file

@ -83,7 +83,8 @@
(for [[index child] (d/enumerate children)]
(let [props (-> (obj/clone props)
(obj/set! "node" child)
(obj/set! "index" index))]
(obj/set! "index" index)
(obj/set! "key" index))]
[:> render-node props]))])))))
(mf/defc text-content