Skip to content

Commit

Permalink
Fix class name in data-fetch example (#4358)
Browse files Browse the repository at this point in the history
* Fixed class name in data-fetch example
* Removed needless empty lines
  • Loading branch information
yhirano55 authored and timneutkens committed May 13, 2018
1 parent b2047de commit af10822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/data-fetch/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

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')
Expand Down
3 changes: 1 addition & 2 deletions examples/data-fetch/pages/preact.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

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')
Expand Down

0 comments on commit af10822

Please sign in to comment.