api.md

August 22, 2026 ยท View on GitHub

Respo API

๐Ÿ“š Documentation Index

Detailed API descriptions now live in source doc strings inside calcit.cirru. Use Calcit CLI to inspect them:

calcit query def respo.core/defcomp
calcit query def respo.core/render!
calcit query def respo.render.html/make-string

calcit query examples <ns/def> is also useful when an API has runnable examples.

User APIs

NamespaceFunction
respo.coredefcomp
div
<>
defeffect
create-element
render!
render-with!
memo-comp-by
memo-value-by
clear-cache!
realize-ssr!
list->
for-keyed
show
effect-on-mount
effect-on-update
effect-on-unmount
effect-watch
error-boundary
make-render-scheduler
>>
respo.resourceresource-idle resource-reducer load-resource!
respo.comp.spacecomp-space =<
respo.comp.inspectcomp-inspect
respo.render.htmlmake-string

Lower level APIs

Normally you do not need these lower level APIs for everyday component work, but they are useful for understanding the rendering pipeline.

NamespaceFunction
respo.util.formatpurify-element
mute-element
respo.util.listmap-val
map-with-idx
respo.render.difffind-element-diffs
respo.render.patchapply-dom-changes
respo.controller.clientactivate-instance!
patch-instance!

Legacy standalone API pages were merged into source doc strings. Older names such as make-html and render-app are no longer separate API pages.

The immutable-data-oriented conditional, keyed list, lifecycle, ref, resource, error, and batching APIs are introduced together in Common primitives.

APIs

map-with-idx
respo.util.list/map-with-idx identity ([] :a :b)
; [] ([] 0 :a) ([] 1 :b)