Commit 07dbf2a2 authored by Guillermo Rauch's avatar Guillermo Rauch Committed by GitHub

Update README.md

parent b86f6a2d
...@@ -106,7 +106,7 @@ export default () => ( ...@@ -106,7 +106,7 @@ export default () => (
### Component lifecycle ### 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 ```jsx
import React from 'react' import React from 'react'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment