提交 07dbf2a2 编写于 作者: G Guillermo Rauch 提交者: GitHub

Update README.md

上级 b86f6a2d
......@@ -106,7 +106,7 @@ export default () => (
### Component lifecycle
When you need state, lifecycle hooks or **initial data population** you can export a `React.Component`:
When you need state, lifecycle hooks or **initial data population** you can export a `React.Component`. Notice that to load data when the page loads, we use `getInitialProps` which is an [`async`](https://zeit.co/blog/async-and-await) static method. It can asynchronously fetch anything that resolves to a JavaScript plain `Object`, which populates `props`.
```jsx
import React from 'react'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册