FrontendDeveloper.in

Vue.js question detail

What is the best way to re-render a component?

The best way to force Vue to re-render a component is to set a :key on the component. i.e, Whenever the component to be re-rendered, just change the value of the key then Vue will re-render the component.

Back to all Vue.js questions
Get LinkedIn Premium at Rs 399