Unverified Commit 0b496a45 authored by Adam Wathan's avatar Adam Wathan Committed by Joe Haddad

Import isomorphic-unfetch in data fetching example (#7895)

Following this example confused me at first because it looked like it was using native fetch, and when that didn't work server-side I wasn't sure if that was my mistake or an issue with the docs.
parent f406bd96
......@@ -404,6 +404,8 @@ When you need state, lifecycle hooks or **initial data population** you can expo
Using a stateless function:
```jsx
import fetch from 'isomorphic-unfetch';
function Page({ stars }) {
return <div>Next stars: {stars}</div>
}
......
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