Hiccup
UIx is using Hiccup for describing UI structure. There are 3 main types of Hiccup forms: DOM elements, UIx component instances and interop elements.
DOM elements
Represented as a vector of tag, optional attributes and zero or more child elements.
Tag name is declared as a keyword with optional id
and class
attributes defined as a part of the name. Together they resemble CSS selector syntax.
When an element is div
with either class
or id
or both of them, div
tag can be skipped.
UIx component instances
Component instance is a vector where the first item is the component itself and all of the rest are arguments.
Interop elements
Interop syntax provides convenient way of using React components written in JavaScript in UIx components. More on that in “Interop with React” section.
Last updated