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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Respo has supports for component-level states. But is designed in an awkward syntax in order to make sure it's consistent with "Single Source of Truth". Read about mutate! and cursor-> in the docs.
Ecosystem
During developing Respo, a bunch of libraries are added:
|Create elements in Clojure syntax:
Nest child elements:
Add text nodes:
Create Components
To define components, use
defcomp
, it's a Macro:Use
render!
to mount a component. It also handles re-rendered if mounting already happened.To hot replace app, use
render!
function.clear-cache!
is for clearing internal rendering caches:States Management
Respo uses an Atom to maintain global states. Global states and "Single Source of Truth" are prefered:
Respo has supports for component-level states. But is designed in an awkward syntax in order to make sure it's consistent with "Single Source of Truth". Read about
mutate!
andcursor->
in the docs.Ecosystem
During developing Respo, a bunch of libraries are added:
Try Respo
Now it's your turn to read Guide and try Respo:
An easy way to use Respo is using tiny-app. It's a macro that handles dirty works in passing in configurations.
For Advanced developers, probably the best way to understand Respo is to read code of how the author is using it. Contact me on Twitter anytime if you got questions.
Send feedbacks on issues if you want to improve this page. Old versions.
The text was updated successfully, but these errors were encountered: