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