1.

Explain what reactivity is in Vue.js.

Answer»
  • The Vue JavaScript framework is "reactive", which means it can automatically refresh your DATA. Reactivity is the phenomenon in which changes in the application state are automatically reflected in the DOM (Document Object Model) which is a programming API for HTML and XML documents. It defines the logical structure, the WAY a document is accessed and MANIPULATED
  • Reactivity is a programming paradigm that allows us to adjust to changes in a declarative manner.  
  • All properties DEFINED in Vue INSTANCES are mostly reactive. This means in case of any change to the properties; the components automatically update and re-render. 
  • Therefore, all these properties are changed to getters and setters in the initialization stage giving Vue the ability to detect these properties when they are changed. 


Discussion

No Comment Found

Related InterviewSolutions