Respo API
User APIs
Namespace | Function |
---|---|
respo.core | defcomp |
div | |
<> | |
defeffect | |
create-element | |
render! | |
clear-cache! | |
realize-ssr! | |
list-> | |
>> | |
respo.comp.space | comp-space or =< |
respo.comp.inspect | comp-inspect |
respo.render.html | make-string |
Lower level APIs
Normally you don't need low level APIs, and the basic APIs are enough for building a apps.
I documented the APIs that can be useful. It's possible to discover new features we have't noticed yet.
Namespace | Function |
---|---|
respo.render.expand | render-app |
respo.util.format | purify-element |
mute-element | |
respo.util.list | map-val |
map-with-idx | |
respo.render.diff | find-element-diffs |
respo.render.patch | apply-dom-changes |
respo.controller.client | activate-instance! |
patch-instance! |
APIs
map-with-idx
respo.util.list/map-with-idx identity ([] :a :b)
; [] ([] 0 :a) ([] 1 :b)