Commit af108228 authored by yhirano55's avatar yhirano55 Committed by Tim Neutkens

Fix class name in data-fetch example (#4358)

* Fixed class name in data-fetch example
* Removed needless empty lines
parent b2047de5
import React from 'react'
import Link from 'next/link'
import 'isomorphic-unfetch'
export default class MyPage extends React.Component {
export default class Index extends React.Component {
static async getInitialProps () {
// eslint-disable-next-line no-undef
const res = await fetch('https://api.github.com/repos/zeit/next.js')
......
import React from 'react'
import Link from 'next/link'
import 'isomorphic-unfetch'
export default class MyPage extends React.Component {
export default class Preact extends React.Component {
static async getInitialProps () {
// eslint-disable-next-line no-undef
const res = await fetch('https://api.github.com/repos/developit/preact')
......
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