-
Notifications
You must be signed in to change notification settings - Fork 10
comp inspect
jiyinyiyong edited this page Mar 21, 2020
·
2 revisions
This component is similiar to comp-text
, it shows data in string with styles.
The differeces is, x
can be anything type(formatted with pr-str
):
(comp-inspect "a tip" x {:color "red"})
This component also comes with special styles to show it in an absolute position.
When clicked, it will print data with (clj->js x)
.
Disable component in production:
(comment (comp-inspect x nil))