
v1.4.8
API Reference
Namespaces
uix.core package
uix.core — primary namespace, contains the core functionality of the libraryuix.preload — preload that enables hot-reloadinguix.re-frame — re-frame integration
uix.dom package
uix.dom — re-exports core functions from react-dom and react-dom/clientuix.dom.server — cljs, re-exports core functions from react-dom/serveruix.dom.server — clj, implements JVM renderer
Commonly used functions
uix.core
defui — creates a new component$ — creates an elementdefhook — creates a custom hookuse-state — local state hookuse-effect — runs after every updateuse-ref — creates a mutable refuse-memo — memoizes a computationuse-callback — caches a callbackcreate-context — creates React contextuse-context — accesses React context value
uix.dom
create-root — creates React root from DOM elementrender-root — renders UIx element into React roothydrate-root — hydrates server rendered HTML with a given UIx elementcreate-portal — creates a React portal into DOM node outside of React tree
More rarely used functions
uix.core
fn — creates anonymous componentcreate-class — creates class-based componentcreate-error-boundary — creates an error boundaryuse-layout-effect — runs after every update, but before the content is painted on the screensuspense — displays a fallback until its children have finished loadingas-react — makes UIx component usable in JavaScript/Reactlazy — creates a loadable UIx componentclone-element — clones and returns a new UIx element