R
R
Rufix2019-10-19 17:28:28
Frontend
Rufix, 2019-10-19 17:28:28

What are JS framework lifecycles for?

The question is in the title. Can't understand what is the practical application of these life cycles?
Well, the page goes through the instantiation stage, well, you changed some text on the page, thereby calling the "updated" hook (in vue, so), what do I care?
Give a practical example, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2019-10-19
@Sanasol

So that everyone understands what can / cannot be done at a certain moment and how it works.
So that there are no questions why this.$el does not work in beforeCreate/created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question