From ab79d82d95887e28302cf1c60f488be323d06aab Mon Sep 17 00:00:00 2001 From: Frederick Ros Date: Tue, 30 Oct 2018 19:29:31 +0100 Subject: [PATCH] Fix a typo (#1344) Seems like the MyErrorBoundary import statement has a typo --- content/docs/code-splitting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/code-splitting.md b/content/docs/code-splitting.md index 091ea3dd..887b8f33 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'));