[:div [:div "Hello world"]]
is now considered validrehook.util/child-seq
which returns a JS array of childrenrehook.dom/as-element
which turns a vector of Hiccup syntax into a React element.:<>
as react/Fragment
div.class.name
shorthand and {:className ...}
at once (eg, by merging the two)rehook.util/children
fn to access child elements of rehook componentdisplayName
for better debugging:>
shorthand:div.foo#bar
[:div {} (for [x y] ...)]
)rehook.util/react-props
helper fn:react/props
into Rehook components.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close