How does React.lazy work under the hood, and when should it be used?

React.lazy loads components asynchronously, useful for code-splitting. It uses import() to fetch code only when needed, improving page load performance.