Skip to content

How to mount a component using vanilla Javascript? #1755

Answered by atk
AlexErrant asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use createComponent from "solid-js" to retain reactivity, e.g.:

createComponent(Dynamic, { ... });

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@AlexErrant
Comment options

@AlexErrant
Comment options

Answer selected by AlexErrant
Comment options

You must be logged in to vote
7 replies
@atk
Comment options

@AlexErrant
Comment options

@atk
Comment options

@AlexErrant
Comment options

@atk
Comment options

Comment options

You must be logged in to vote
2 replies
@AlexErrant
Comment options

@atk
Comment options

Comment options

You must be logged in to vote
1 reply
@snnsnn
Comment options

Comment options

You must be logged in to vote
1 reply
@AlexErrant
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants