Answer the question
In order to leave comments, you need to log in
How to apply Vue, React, ... without changing the html code?
All of them, it seems, provide access to their functionality only after adding attributes, tags and parameters to the html code of the page itself.
Or not always?
Answer the question
In order to leave comments, you need to log in
they need a root element like
<body>
<div id='app'></div>
</body>
They create a virtual DOM that they already interact with.
If you want to use it without changing the HTML code, then you can use ref on the desired element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question