Base components
There are some base components for building apps built inside Respo:
respo.comp.space/comp-space
respo.comp.space/=< ; "which is an alias for `comp-space`"
respo.comp.inspect/comp-inspect
Also I got some simple component to help:
respo-ui
for base stylesrespo-value
for displaying valuesrespo-router
for routering(Respo not required)global-popup
for global popupsinflow-popup
for local popups(demo only)notifier
for showing notifications(Respo not required)
Respo components are pure, without side effects.
Component for keydowns
It's tricky to listen to global events since Respo does not allow useEffect
or useMounted
. Respo added a component for listening to global keydowns:
respo.comp.global-keydown :refer $ comp-global-keydown
comp-global-keydown
{} $ :disabled-commands (#{} "\"s" "\"p")
fn (e d!) (js/console.log "\"keydown" e)
Internally it listens events on window
and dispatches events to a <span/>
element.