VanJS Component API #173
yahia-berashish
started this conversation in
Ideas
Replies: 2 comments 9 replies
-
Hi, We do have a component library for VanJS: https://github.com/vanjs-org/van/tree/main/components. Initially it was a collection of UI components, recently we have a utility component |
Beta Was this translation helpful? Give feedback.
6 replies
-
Hello @Hunter-Gu @Tao-VanJS It still has an issue of not supporting conditionally rendering elements and components and adding them to the component tree, but I'm sure it can be fixed. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Me and @Hunter-Gu were trying to implement a Context API for state management, he found a way by creating a simple component implementation that managed to get the Context API working, but I recommend separating that functionality (with slight modifications) to a different package that can be used as a base for future packages (like the Context API).
A package (something like
vanjs-components
) that would provide a simple component tree implementation (because VanJS doesn't have components) and possibly a simple lightweight virtual DOM implementation too, would be great for keeping VanJS itself (core and official extension(s)) lightweight and simple while providing additional more advanced functionality for more sophisticated implementations and API.This is the sandbox link for the implementation.
Would like to hear your opinion.
Beta Was this translation helpful? Give feedback.
All reactions