Q11. What is the difference between Shadow DOM and Virtual DOM?
The _Shadow DOM_ is a browser technology designed primarily for scoping variables and CSS in _web components_. The _Virtual DOM_ is a concept implemented by libraries in ...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (138 available).
The _Shadow DOM_ is a browser technology designed primarily for scoping variables and CSS in _web components_. The _Virtual DOM_ is a concept implemented by libraries in ...
A **controlled component** is a React component that **fully manages the form element's state**(e.g, elements like ``, ``, or ``)) using React's internal state mechanism....
The **Uncontrolled components** are form elements (like ``, ``, or ``) that **manage their own state internally** via the **DOM**, rather than through React state. You ca...
When several components need to share the same changing data then it is recommended to _lift the shared state up_ to their closest common ancestor. That means if two chil...
A _higher-order component_ (_HOC_) is a function that takes a component and returns a new enhanced component with additional props, behavior, or data. It’s a design patte...
No, currently `React.lazy` function supports default exports only. If you would like to import modules which are named exports, you can create an intermediate module that...
If the behaviour of a component is independent of its state then it can be a stateless component. You can use either a function or a class for creating stateless componen...
If the behaviour of a component is dependent on the _state_ of the component then it can be termed as stateful component. These _stateful components_ are either function ...
When the application is running in _development mode_, React will automatically check all props that we set on components to make sure they have _correct type_. If the ty...
Components are reusable Vue instances with a name. They accept the same options as new Vue, such as data, computed, watch, methods, and lifecycle hooks(except few root-sp...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.