Subjects

All subjects Django Java Python React Spring Boot JavaScript PHP
Sign Up Free
React 8 questions

Performance Optimization and Code Splitting

Optimize React load times. Learn lazy loading, Suspense boundaries, memoization, useMemo, useCallback, and virtual listing.

More React
Interview questions 1–8 of 8
1

What are performance optimization techniques in React?

Use React.memo, useMemo, useCallback, code splitting, lazy loading, virtualization.

Read answer →
2

How do you implement code splitting?

import { lazy, Suspense } from 'react'; const Home = lazy(() => import('./pages/Home')); const About = lazy((...

Read answer →
3

What is virtual scrolling and when to use it?

Virtual scrolling - render only visible items in long lists. Use libraries like react-window.

Read answer →
4

How do you profile React performance?

Use React DevTools Profiler, Chrome DevTools, Lighthouse, Web Vitals.

Read answer →
5

What is memoization and how does useMemo work?

const memoized = useMemo(() => { return expensiveCalculation(data); }, [data]);

Read answer →
6

How do you optimize images in React apps?

Use next/image, lazy loading, WebP format, responsive images, CDN.

Read answer →
7

What is React.lazy and why use it?

const Component = React.lazy(() => import('./Component')); // Benefit: Automatic code splitting and lazy load...

Read answer →
8

How do you monitor bundle size?

Use webpack-bundle-analyzer, source-map-explorer, bundlesize, Lighthouse.

Read answer →