Skip to content

Render public API ​

Only the package root is a consumer entry. Use the built root; source helper modules are not public subpaths.

MethodArguments and resultRefusal and ownership
validateSpec(spec: unknown, contract?): ValidationResultInner screen object; optional host declarations. Returns ok and errors: {path,message}[].Returns validation errors without repair. Host retains accepted screen.
Renderer(props): ReactElementspec, function-valued components, state, setState, actions, optional matching contract.Throws for invalid screen, used component or action. No error boundary or state store.
classesFor(node): stringAlready validated ScreenNode. Fixed Layout/Card utilities; other nodes return empty string.Not a validator. Host starts CSS.
getRenderSpecDefinition(contract?): RenderSpecDefinitionReturns detached JSON-serializable definitionVersion:1 data.Bad declarations throw TypeError with first contract.* path. Copy edits cannot change validation.

Contract configuration ​

Binding/action generics default to /name and save. Configured generics need an explicit matching runtime contract.

Lifetime ​

There is no renderer instance to dispose. Unmount your React tree and destroy host-owned CSS, network and session resources. Definitions are copied per call. Keys preserve identity only within React's normal reconciliation rules.

packages/barocss-render/package.json (Manifest and version; local source) · packages/barocss-render/README.md (Package task notes; local source)

Local manual snapshot. Availability is stated on each package page.