Introduction
Declarative rendering and composition helpers for React
@ilokesto/utilinent
@ilokesto/utilinent is a React utility library for declarative rendering patterns. Instead of repeating ternaries, map callbacks, viewport wiring, and composition boilerplate in every component, it gives those patterns names.
The package is built around a few families of exports:
- conditional rendering helpers like
Show,Switch, andMatch - collection helpers like
ForandRepeat - async and visibility helpers like
Mount,Observer,Slacker, anduseIntersectionObserver - composition and extensibility helpers like
Slot,Slottable,createProxy, andPluginManager
Installation
pnpm add @ilokesto/utilinentMental model
- Declarative over ad hoc JSX logic: move conditional and collection rules into named primitives.
- Composition over wrapper nesting: use
SlotandSlottablewhen a component should pass behavior down to a child. - Extensibility over one-off helpers: use proxy and plugin helpers when you want new tagged variants instead of duplicating component definitions.