1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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

* Fixed class name in data-fetch example
* Removed needless empty lines
This commit is contained in:
yhirano55 2018-05-14 01:12:03 +09:00 committed by Tim Neutkens
parent b2047de51a
commit af1082286e
2 changed files with 2 additions and 4 deletions

View file

@ -1,9 +1,8 @@
import React from 'react' import React from 'react'
import Link from 'next/link' import Link from 'next/link'
import 'isomorphic-unfetch' import 'isomorphic-unfetch'
export default class MyPage extends React.Component { export default class Index extends React.Component {
static async getInitialProps () { static async getInitialProps () {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
const res = await fetch('https://api.github.com/repos/zeit/next.js') const res = await fetch('https://api.github.com/repos/zeit/next.js')

View file

@ -1,9 +1,8 @@
import React from 'react' import React from 'react'
import Link from 'next/link' import Link from 'next/link'
import 'isomorphic-unfetch' import 'isomorphic-unfetch'
export default class MyPage extends React.Component { export default class Preact extends React.Component {
static async getInitialProps () { static async getInitialProps () {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
const res = await fetch('https://api.github.com/repos/developit/preact') const res = await fetch('https://api.github.com/repos/developit/preact')