-
Notifications
You must be signed in to change notification settings - Fork 10
div
jiyinyiyong edited this page Mar 21, 2020
·
5 revisions
Here's how you use div
macro to create a tree of <div>
s:
(div {:class-name "example"
:style {}
:on {}}
(div {})
(div {}))
Its first argument is a HashMap consists of :style
:on
and other properties. For property like el.className
, you write in :class-name
.
Find more in DOM elements.