Integrating legend state into headless component libraries #174
Unanswered
DawidWraga
asked this question in
Q&A
Replies: 1 comment
-
Yes, I'd think it should be pretty easy to do that. There's already a legend-xstate project: https://github.com/GoldingAustin/store-xstate/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The core observable of legend state is completely framework agnostic and provides highly performant reactivity.
This means that a headless component library built in legend state would be fast and work across all web frameworks.
If my understanding is correct, then there is a massive opporunity here.
Perhaps a good way of making this into a reality would be to integrate observables into exisiting headless ui logic.
In particular, zag.js is built on x state machines, which are fundementally framework agnostic too. However, to consume the state and make it reactive, zag uses framework specific state handlers.
Here is an example to clarify:
Would it be possible to integrate legend state with zag (or other) to create a super performant & super flexible headless ui library?
Beta Was this translation helpful? Give feedback.
All reactions