Skip to content

Commit 2c73633

Browse files
committed
Add re-render component question
1 parent 752e1a9 commit 2c73633

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ List of 300 VueJS Interview Questions
237237
|228| [What is the reason for recommendation for multi-word component names?](#what-is-the-reason-for-recommendation-for-multi-word-component-names)|
238238
|229| [How to use composition API in Vue2.0?](#how-to-use-composition-api-in-vue2.0)|
239239
|230| [What is composition API?](#what-is-composition-api)|
240+
|231| [What is the best way to re-render a component?](#what-is-the-best-way-to-re-render-a-component)
240241

241242
1. ### What is VueJS?
242243
**Vue.js** is an open-source, progressive Javascript framework for building user interfaces that aim to be incrementally adoptable. The core library of VueJS is focused on the `view layer` only, and is easy to pick up and integrate with other libraries or existing projects.
@@ -4990,3 +4991,7 @@ List of 300 VueJS Interview Questions
49904991
Composition API is a set of additive, function-based APIs that allow flexible composition of component logic.
49914992
49924993
**[⬆ Back to Top](#table-of-contents)**
4994+
4995+
231. ### What is the best way to re-render a component?
4996+
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.
4997+
**[⬆ Back to Top](#table-of-contents)**

0 commit comments

Comments
 (0)