Skip to content

Commit f367890

Browse files
committed
Updates docs.
1 parent df738d8 commit f367890

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Create Components that resolve asynchronously, with support for server side rend
77
[![Travis](https://img.shields.io/travis/ctrlplusb/react-async-component.svg?style=flat-square)](https://travis-ci.org/ctrlplusb/react-async-component)
88
[![Codecov](https://img.shields.io/codecov/c/github/ctrlplusb/react-async-component.svg?style=flat-square)](https://codecov.io/github/ctrlplusb/react-async-component)
99

10+
```jsx
11+
const AsyncProduct = createAsyncComponent({
12+
resolve: () => import('./components/Product'))
13+
});
14+
15+
<AsyncProduct productId={1} /> // 🚀
16+
```
17+
1018
## TOCs
1119

1220
- [Introduction](#introduction)

0 commit comments

Comments
 (0)