diff --git a/examples/with-dynamic-import/components/hello5.js b/examples/with-dynamic-import/components/hello5.js new file mode 100644 index 00000000..b09e189f --- /dev/null +++ b/examples/with-dynamic-import/components/hello5.js @@ -0,0 +1,3 @@ +export default () => ( +

Hello World 5 (imported dynamiclly)

+) diff --git a/examples/with-dynamic-import/pages/index.js b/examples/with-dynamic-import/pages/index.js index 596e4f6b..e5b92bff 100644 --- a/examples/with-dynamic-import/pages/index.js +++ b/examples/with-dynamic-import/pages/index.js @@ -20,6 +20,8 @@ const DynamicComponentWithAsyncReactor = asyncReactor(async () => { return () }) +const DynamicComponent5 = dynamic(import('../components/hello5')) + export default () => (
@@ -27,6 +29,14 @@ export default () => ( + { + /* + Since DynamicComponent5 does not render in the client, + it won't get downloaded. + */ + } + { React.noSuchField === true ? : null } +

HOME PAGE is here!