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

Can createDocumentFragment be used directly? #287

Closed
creatormir opened this issue Mar 11, 2024 · 2 comments
Closed

Can createDocumentFragment be used directly? #287

creatormir opened this issue Mar 11, 2024 · 2 comments

Comments

@creatormir
Copy link

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

let fragment =  document.createDocumentFragment()
    fragment.appendChild( div(input()) )
@Tao-VanJS
Copy link
Member

What do you mean by "VanJS proxy constructor"?

The code you pasted seems to be valid VanJS code.

@creatormir
Copy link
Author

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.

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

2 participants