diff --git a/content/docs/code-splitting.md b/content/docs/code-splitting.md index 091ea3dd8..887b8f336 100644 --- a/content/docs/code-splitting.md +++ b/content/docs/code-splitting.md @@ -194,7 +194,7 @@ function MyComponent() { If the other module fails to load (for example, due to network failure), it will trigger an error. You can handle these errors to show a nice user experience and manage recovery with [Error Boundaries](/docs/error-boundaries.html). Once you've created your Error Boundary, you can use it anywhere above your lazy components to display an error state when there's a network error. ```js -import MyErrorBoundary from '/MyErrorBoundary'; +import MyErrorBoundary from './MyErrorBoundary'; const OtherComponent = React.lazy(() => import('./OtherComponent')); const AnotherComponent = React.lazy(() => import('./AnotherComponent'));