I
I
Igor2021-09-24 13:17:56
Vue.js
Igor, 2021-09-24 13:17:56

How to write pure JS code in Vue?

I need to work with one map related library called leafle, how can I make it work on Vue? Is it just to attach another pure JS file to the component, or can this be done in some more correct way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Sarvarov, 2021-09-24
@invex

It's better to use ready-made components like vue-leaflet: vue 2 , vue 3 .
Otherwise there will be problems, such as problems with reactivity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question