I
I
Ilabuse2018-06-05 20:29:44
Vue.js
Ilabuse, 2018-06-05 20:29:44

Is it even possible to interact from a Vue component with a house tree?

The question is, is interacting with the DOM from within a component a good practice?
Now I'm not asking about $refs, I understand them very well and what they are for.
But how is it possible if I want to write a gallery component, then how do I work with the house?
I just can't figure out if it's right to manipulate the house in the component, it won't affect the rerender and all that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-06-05
@Sizex

I just can't figure out if it's correct to manipulate the house in a component

No, not right. Vue has a declarative approach, learn how to use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question