I have been asked to implement jQuery Validate
into my Vue
project but I have read in various places that you should not add jQuery
into the mix because JS
has an internal rep of all the DOM
elements. That way the actual DOM
doesn’t have to be analyzed every time a change is made but if you manipulate the DOM
using JQuery
then it no longer matches the virtual representation being used by Vue
as Vue
own’s the patch of DOM
and if JQuery
makes a change to an element that Vue
is managing like adding a class (which the JQ Validate
does - valid/error), Vue
isn’t aware of the change and will overwrite
basically, my question is can/should I use this or use something like vuelidate? which is designed for Vue