Q121. Why is normalized state important for performance?
1. **O(1) lookups by ID** instead of scanning/`find()`-ing through an array every time a component needs one item. 2. **Updates are localized**: changing one entity only ...
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).
1. **O(1) lookups by ID** instead of scanning/`find()`-ing through an array every time a component needs one item. 2. **Updates are localized**: changing one entity only ...
A practical, step-by-step approach: 1. **Confirm it's actually Redux**: use the React DevTools **Profiler** to see which components re-render and how often, before assumi...
All three are drop-in `` implementations from `react-router-dom` (see [What are the `` components of React Router v6?](#what-are-the-router-components-of-react-router-v6)...
Starting with React Router v6.4, the library ships **data APIs** (`createBrowserRouter`, `loader`, `action`, `useLoaderData`, `useActionData`, `useFetcher`) that move dat...
There are 3 possible ways to achieve this in class components: 1. **Binding in Constructor:** In JavaScript classes, the methods are not bound by default. The same rule a...
_Ref forwarding_ is a feature that lets some components take a _ref_ they receive, and pass it further down to a child. ```jsx harmony const ButtonElement = React.forward...
_Context_ provides a way to pass data through the component tree without having to pass props down manually at every level. For example, authenticated users, locale prefe...
**Note:** Error boundaries were introduced in React 16 and remain valid in current React versions (18/19). _Error boundaries_ are components that catch JavaScript errors ...
You can _decorate_ your _class_ components, which is the same as passing the component into a function. **Decorators** are flexible and readable way of modifying componen...
It is recommended to name the component by reference instead of using `displayName`. Using `displayName` for naming component: ```javascript export default React.createCl...
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.