logoalt Hacker News

nilirltoday at 5:50 PM1 replyview on HN

Ok, I love it.

Can you simplify how form dynamism works? I skimmed the docs and saw 'states', but it didn't immediately click how it works.

Do we build a tree of rules outside of the components? Are states attached to each component, bottoms-up, and then the form tree is managed by the library?


Replies

wtfdevelopertoday at 6:00 PM

Depending on the DSL you choose (JSON or Programmatic) you declare reactivity slightly different, but pretty much, we have states and inlined expressions.

If states didn't click initially that's fine, you can still cover a lot of ground using inlined expressions: https://golemui.com/dx/features/states/inline-when/

Basically you can nest the states, so you can build a tree of states that way.

Or you can leverage the DX to have fully reactive components.