We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8946e86 commit 45dcef8Copy full SHA for 45dcef8
reactjsfoundations.com/src/routes.js
@@ -7,8 +7,9 @@ import * as Chapter09 from './chapter09';
7
import ErrorBoundary from './chapter13/ErrorBoundary';
8
import SyntaxHighlighter from 'react-syntax-highlighter';
9
import { github } from 'react-syntax-highlighter/dist/esm/styles/hljs';
10
-import WpBlog from './WpBlog';
11
-import WpBlogSP from './WpBlogSP';
+
+const WpBlog = lazy(() => import('./WpBlog'));
12
+const WpBlogSP = lazy(() => import('./WpBlogSP'));
13
const Introduction = lazy(() => import('./Introduction'));
14
const WhereToBuy = lazy(() => import('./WhereToBuy'));
15
const About = lazy(() => import('./About'));
0 commit comments