From af1082286e3904244f9296f81b3faf5413e996ad Mon Sep 17 00:00:00 2001 From: yhirano55 Date: Mon, 14 May 2018 01:12:03 +0900 Subject: [PATCH] Fix class name in data-fetch example (#4358) * Fixed class name in data-fetch example * Removed needless empty lines --- examples/data-fetch/pages/index.js | 3 +-- examples/data-fetch/pages/preact.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/data-fetch/pages/index.js b/examples/data-fetch/pages/index.js index 3c8eb4d3..bac2d5a7 100644 --- a/examples/data-fetch/pages/index.js +++ b/examples/data-fetch/pages/index.js @@ -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') diff --git a/examples/data-fetch/pages/preact.js b/examples/data-fetch/pages/preact.js index dc3455ef..aeb10708 100644 --- a/examples/data-fetch/pages/preact.js +++ b/examples/data-fetch/pages/preact.js @@ -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')