Skip to content

Commit 676f52d

Browse files
committed
Updates docs.
1 parent e647448 commit 676f52d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ const AsyncProduct = createAsyncComponent({
8080
});
8181
```
8282

83-
Okay, the above may not look terribly useful at first, but it opens up an easy point to integrating code splitting APIs supported by bundlers such as Webpack. We will provide examples of these as well as details on some other useful configuration options within the [`API`](#api) section.
83+
Okay, the above may not look terribly useful at first, but it opens up an easy point to integrating code splitting APIs supported by bundlers such as Webpack. We will provide examples of these as well as details on some other useful configuration options within the [`API`](#api) section. To wet your appetite though below is an example of using the `System.import` API provided by Webpack 2 to allow for code splitting on your async Component:
84+
85+
```jsx
86+
const AsyncProduct = createAsyncComponent({
87+
resolve: () => System.import('./components/Product') // 🚀
88+
});
89+
```
8490

8591
## API
8692

0 commit comments

Comments
 (0)