Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncontrolled components #7

Open
literat opened this issue Apr 22, 2024 · 0 comments
Open

Uncontrolled components #7

literat opened this issue Apr 22, 2024 · 0 comments

Comments

@literat
Copy link
Contributor

literat commented Apr 22, 2024

In Twig we want to have Uncontrolled components similar to React. The point of uncontrolled components in twig, as in react, is that the user cannot control their state. In this case, control of the components is hardwired via the data-spirit-toggle data attribute to the component and cannot be turned off.
So the developer will either use a controlled component and hang or add all the attributes himself or an uncontrolled component where javascript will be directly available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant