# React Router 7 Lazy Loading

DevFeed: [React Router 7 Lazy Loading](<https://devfeed.tech/articles/react-router-7-lazy-loading-18969.md>)

Original publisher: [Read original article](<https://www.robinwieruch.de/react-router-lazy-loading/>)

Author: Robin Wieruch

Published: 2025-01-06T05:52:51Z

Content type: tutorial

Language: en

Sources: [Robin Wieruch](<https://devfeed.tech/sources/robin-wieruch.md>)

Topics: [lazy loading](<https://devfeed.tech/topics/lazy-loading.md>), [React Router](<https://devfeed.tech/topics/react-router.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code-splitting](<https://devfeed.tech/tags/code-splitting.md>), [component](<https://devfeed.tech/tags/component.md>), [exports](<https://devfeed.tech/tags/exports.md>), [fallback](<https://devfeed.tech/tags/fallback.md>), [lazy-loading](<https://devfeed.tech/tags/lazy-loading.md>), [library](<https://devfeed.tech/tags/library.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [react](<https://devfeed.tech/tags/react.md>), [react-router](<https://devfeed.tech/tags/react-router.md>), [react-router-7](<https://devfeed.tech/tags/react-router-7.md>), [react-router-lazy-loading](<https://devfeed.tech/tags/react-router-lazy-loading.md>), [react-router-tutorial](<https://devfeed.tech/tags/react-router-tutorial.md>), [wrapper](<https://devfeed.tech/tags/wrapper.md>)

## AI overview

The tutorial demonstrates route-level code splitting in React Router 7: page components are split into smaller bundles and loaded on demand when a user visits a route. It uses React.lazy with React Suspense to show a fallback while a component loads, and notes that React.lazy applies to any component, not just routes. For named exports, the lazy-loading setup differs from the default-export example. It also introduces @loadable/component, which applies React Suspense by default. The supplied excerpt ends mid-sentence, so it does not establish the rest of the library's usage or the full tutorial.

## Source excerpt

How to: React Router 7 Lazy Loading: code-splitting at route level helps you lazy-load just the things that are needed by the user, which dramatically improves the performance ...