jiyinyiyong edited this page Feb 4, 2018 · 15 revisions

Respo API

User APIs

Namespace Function
respo.macros defcomp
div
<>
cursor->
list->
action->
mutation->
respo.comp.space comp-space or =<
respo.comp.inspect comp-inspect
respo.core create-comp
create-element
render!
clear-cache!
realize-ssr!
respo.cursor mutate
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
path-data
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-val
(respo.util.list/map-val inc {:a 1, :b 2})
; ([:a 2] [:b 3])
map-with-idx
(respo.util.list/map-with-idx identity [:a :b])
; ([0 :a] [1 :b])
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.