vanjs-org / van

🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.
https://vanjs.org
MIT License
3.77k stars 87 forks source link

Can createDocumentFragment be used directly? #287

Closed creatormir closed 6 months ago

creatormir commented 6 months ago

Can be used directly, no need to pass through VanJS proxy constructor?

let fragment =  document.createDocumentFragment()
    fragment.appendChild( div(input()) )
Tao-VanJS commented 6 months ago

What do you mean by "VanJS proxy constructor"?

The code you pasted seems to be valid VanJS code.

creatormir commented 6 months ago

I mean by "VanJS proxy constructor" a function that adds a proxy to an object.

The code you pasted seems to be valid VanJS code.

Yes, that is right.