VanJS Component API #173
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.
-
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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