Subjects

All subjects Django Java Python React Spring Boot JavaScript PHP
Sign Up Free
Interview question

What is React.lazy and why use it? React.lazy क्या है और क्यों use करें?

Answer
const Component = React.lazy(() => import('./Component'));

// Benefit: Automatic code splitting and lazy loading
React.lazy() से automatic code splitting होता है।

Was this answer clear?