All fields

“Performance (memo/useMemo)” in Information Technology

37 questions across 1 technology.

Information Technology

37 questions in 1 technology

#QuestionTechnologyTopicLevel
1What does React.memo do and how does it help performance? React › Performance (memo/useMemo)ReactPerformance (memo/useMemo)Beginner
2How would you use the React Profiler to find which components are causing performance problems? React › Performance (memo/useMemo)ReactPerformance (memo/useMemo)Advanced
3What is the useCallback hook and how is it different from useMemo? React › Performance (memo/useMemo)ReactPerformance (memo/useMemo)Intermediate
4What is a simple real world example of when useMemo actually helps a React app? React › Performance (memo/useMemo)ReactPerformance (memo/useMemo)Beginner
5Why should you avoid overusing useMemo and React.memo throughout an entire app? React › Performance (memo/useMemo)ReactPerformance (memo/useMemo)Intermediate
6What is the useMemo hook and how does it help with performance? React › HooksReactHooksIntermediate
7What is automatic batching in React, and how does it improve performance? React › Strict Mode & Concurrent FeaturesReactStrict Mode & Concurrent FeaturesIntermediate
8How do you keep animations smooth and avoid hurting performance in a React app? React › Animation in React (Framer Motion & React Spring)ReactAnimation in React (Framer Motion & React Spring)Advanced
9How does useDeferredValue help improve performance when rendering a large list based on user input? React › Concurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)ReactConcurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)Advanced
10Why can overusing Context sometimes hurt performance in a large React app? React › Context APIReactContext APIAdvanced
11What is Framer Motion and how does it make animating React components easier? React › Animation in React (Framer Motion & React Spring)ReactAnimation in React (Framer Motion & React Spring)Beginner
12What is a simple real world example of when useTransition would make an app feel faster? React › Concurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)ReactConcurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)Beginner
13How do you render a list of items in React using the map function? React › Conditional Rendering & Lists (Keys)ReactConditional Rendering & Lists (Keys)Beginner
14What is React DevTools and how do you install it? React › React DevTools & DebuggingReactReact DevTools & DebuggingBeginner
15How do you create a clickable link to navigate between pages using React Router? React › RoutingReactRoutingBeginner
16Why does a statically generated website often load faster than one that renders pages on every request? React › Static Site Generation (SSG) & HydrationReactStatic Site Generation (SSG) & HydrationBeginner
17What should you place inside a Suspense fallback, and what are some good practices? React › Suspense & Concurrent RenderingReactSuspense & Concurrent RenderingBeginner
18What is the virtual DOM in React, and why does React use it? React › Virtual DOM & ReconciliationReactVirtual DOM & ReconciliationBeginner
19Why does the virtual DOM make React apps feel fast even when data changes frequently? React › Virtual DOM & ReconciliationReactVirtual DOM & ReconciliationBeginner
20How does React Spring differ from Framer Motion in the way it creates animations? React › Animation in React (Framer Motion & React Spring)ReactAnimation in React (Framer Motion & React Spring)Intermediate
21What is code minification and why does a build tool perform it automatically? React › Build Tools & Bundlers (Vite, Webpack & CRA)ReactBuild Tools & Bundlers (Vite, Webpack & CRA)Intermediate
22What problem does useTransition solve in a React app? React › Concurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)ReactConcurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)Intermediate
23Why is using an array's index as a key generally considered a bad practice? React › Conditional Rendering & Lists (Keys)ReactConditional Rendering & Lists (Keys)Intermediate
24How does automatic caching work in React Query, and why does it make an app feel faster? React › Data Fetching (React Query & SWR)ReactData Fetching (React Query & SWR)Intermediate
25What does the dependency array in useEffect actually control? React › Effects & LifecycleReactEffects & LifecycleIntermediate
26How do you clean up an effect in React, and why is it important? React › Effects & LifecycleReactEffects & LifecycleIntermediate
27What are the main benefits of using Server Components in a real React app? React › Server ComponentsReactServer ComponentsIntermediate
28What is hydration in the context of server side rendering, and why is it necessary? React › Server-Side Rendering (SSR) & Next.jsReactServer-Side Rendering (SSR) & Next.jsIntermediate
29How would you show multiple separate loading states for different sections of a page using several Suspense boundaries? React › Suspense & Concurrent RenderingReactSuspense & Concurrent RenderingIntermediate
30What is reconciliation in React, and how does it decide what actually needs to change on the screen? React › Virtual DOM & ReconciliationReactVirtual DOM & ReconciliationIntermediate
31How would you preload a lazy loaded component before the user actually navigates to it? React › Code Splitting & Lazy LoadingReactCode Splitting & Lazy LoadingAdvanced
32When should you choose useTransition over useDeferredValue, given they solve a similar kind of problem? React › Concurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)ReactConcurrent Hooks (useTransition, useDeferredValue & useLayoutEffect)Advanced
33How does SWR's stale while revalidate strategy work, and why is it useful? React › Data Fetching (React Query & SWR)ReactData Fetching (React Query & SWR)Advanced
34How does React Hook Form simplify building forms compared to managing every field with useState manually? React › Forms: Controlled & Uncontrolled ComponentsReactForms: Controlled & Uncontrolled ComponentsAdvanced
35How would you use React DevTools to find out why a component re rendered when you did not expect it to? React › React DevTools & DebuggingReactReact DevTools & DebuggingAdvanced
36How does Recoil's atom based approach to state differ from Redux's single central store? React › State Management Libraries (Redux, Zustand & Recoil)ReactState Management Libraries (Redux, Zustand & Recoil)Advanced
37What are concurrent features in React, and how do they relate to Strict Mode? React › Strict Mode & Concurrent FeaturesReactStrict Mode & Concurrent FeaturesAdvanced