Skip to content

Add better support for dynamic component calls in defui #61

@phronmophobic

Description

@phronmophobic

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}))
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions