content: import React from 'react'
  import Link from 'next/link'
  import fetch from 'isomorphic-unfetch'
  
  function Index (props) {
    return (
      <div>
        <p>Next.js has {props.stars} ⭐️</p>
        <Link href='/preact'>
          <a>How about preact?</a>
        </Link>
      </div>
    )
  }
  
  Index.getInitialProps = async () => {
    const res = await fetch('https://api.github.com/repos/zeit/next.js')
    const json = await res.json() // better use it inside try .. catch
    return { stars: json.stargazers_count }
  }
  
  export default Index
  