E
E
eugenedrvnk2020-10-21 16:49:15
React
eugenedrvnk, 2020-10-21 16:49:15

What are the differences in approaches to processing (validation) of forms in React and Vue?

When working with Vue, when it was necessary to make some forms, I always used a garter to v-model (value / onInput) and then processed the received "reactive" data with the plugin, everything seems to be according to the canons. And in general, most of the view validation plugins are tied to the processing of reactive data in the form.

In React, on the contrary, all the plugins that I came across, on the contrary, try to get away from "reactivity", the use of value / onInput, repeated re-renders, etc., and simply validate forms in native ways, hanging listeners, and so on.

What is the reason for such a difference, because of which there are battles in react to avoid an extra rerender, and in view everyone calmly uses value/onInput aka v-model and doesn’t really worry about this issue?

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