Replies: 0 comments 1 reply
-
This seems like a good idea to me. I'm doing some research to be sure that there is no big downside to this. |
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 big issue with Lenra right now is the lack of client-side state.
For now, if we want to control a popup for example, we have to link the popup "open" state to a mongo document.
We could create a client-side state to manage this kind of cases.
My idea
A
state
component could be created by the developer to create a state around one or more components.This
state
component have aname
that can be used anywhere to get the data.Example :
Now to manipulate this state, there is multiple options.
We can also add automatic client-side state like "hover", "focused" and so on. These are fully automatic and can only be read.
A (messy) example that need some work
Beta Was this translation helpful? Give feedback.
All reactions