Skip to content
jiyinyiyong edited this page Sep 1, 2021 · 1 revision

div

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.

Clone this wiki locally