5 ms·
Tag functions being implemented with a Proxy (https://vanjs.org/tutorial#api-tags https://vanjs.org/tutorial#api-tags) could make that a little cumbersome, and
by chrsjxn 3y ago
Tag functions being implemented with a Proxy (https://vanjs.org/tutorial#api-tags https://vanjs.org/tutorial#api-tags) could make that a little cumbersome, and would break the abstraction that `div(...)` just returns an HTMLDivElement you can do whatever you want with.
- mattigames 3y agoYeah, plus I realized after posting that for nesting children it would mean having the properties at the end, not very dev-friendly, maybe the way this lib does it is the best way (without JSX or anything like that)