| 1 |
React |
Test, rate and improve your React knowledge with these questions. |
React Questions |
Test, rate and improve your React knowledge with these questions. |
true |
| title |
description |
keywords |
| React Questions |
Curated list of React questions to test, rate and improve your knowledge. Questions are based on real world experience and knowledge. |
| react quiz |
| react questions |
| react interview questions |
| react interview |
| react test |
|
|
| priority |
changefreq |
| 1 |
monthly |
|
| question |
answer |
topics |
| What is a React? |
React, is an open-source JavaScript library for building user interfaces (UIs). It was developed and is maintained by Meta, and is widely used by developers to create interactive and dynamic web applications. |
|
|
| question |
answer |
topics |
| What are the features of React? |
Use of Virtual DOM instead of Real DOM, JSX, Server-side rendering, Unidirectional data flow or data binding, Reusable components, etc. |
|
|
| question |
answer |
topics |
| What is JSX? |
JSX is a syntax extension to JavaScript and comes with the full power of JavaScript. JSX produces React “elements”. You can embed any JavaScript expression in JSX by wrapping it in curly braces. After compilation, JSX expressions become regular JavaScript objects. |
|
|
| question |
answer |
topics |
| What is the difference between Real DOM and Virtual DOM? |
Virtual DOM is the representation of a UI in the form of a plain javascript object. It is a node tree that lists the elements, their attributes and content as Objects and their properties. Real DOM is the real representation of a UI which can be seen and inspected in the browser.
Manipulating the virtual DOM is much faster than real DOM, because nothing gets drawn on the screen. React uses this virtual DOM to figure out the most efficient way to update the browser DOM.
|
|
|
| question |
answer |
topics |
| What is the difference between state and props? |
Props are used to pass data from parent to child. They are like function arguments. They are immutable.
State is managed within the component and is mutable.
|
|
|
| question |
answer |
topics |
| What is the difference between controlled and uncontrolled components? |
controlled-vs-uncontrolled.md |
|
|
| question |
answer |
topics |
| What are different options to style a React component? |
CSS Stylesheets, Inline styles, CSS Modules, Styled Components, CSS in JS libraries, etc. |
|
|
| question |
answer |
topics |
| What are different ways to keep React performant? |
react-performance.md |
|
|
|