M
M
Maxim Zolotoy2021-02-27 20:42:31
Vue.js
Maxim Zolotoy, 2021-02-27 20:42:31

How to use VUE components in a regular JS file that adds elements to the page in #app?

I have a project on VUE 3 and I made the modal window a separate JS file (not as a vue component ).
How can I use my VUE component in a simple JS file that adds a modal window to the page and does it in the VUE root element - #app ?

In react, I would just use ReactDOM.render - I need some kind of analogue here

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question