Defui should support something like
(defui dynamic-component [{:keys [my-component props]}]
;; support fully dynamic
(defui-call
(my-component props))
(defui-call
;; allow keys to be provided for efficiency.
;; not sure about this syntax.
(my-component props [:foo :bar]))
(defui-call
;; also support literal maps
(my-component {:foo foo
:bar bar}))
)
Defui should support something like