Skip to content

Commit

Permalink
Support strings as parts
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Jun 27, 2024
1 parent f07c034 commit 2c2036f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/re_com/util.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@

(defn part [x props & [default]]
(cond
(string? x) x
(hiccup? x) x
(ifn? x) [x props]
(ifn? x) [x props]
default (part default props)
:else nil))

Expand Down

0 comments on commit 2c2036f

Please sign in to comment.