Commit ef13f5cc authored by Kateryna Pohrebniak's avatar Kateryna Pohrebniak Committed by Tim Neutkens

Typo in class name in with-react-esi example (#8414)

parent ad77a550
...@@ -3,7 +3,7 @@ import React from 'react' ...@@ -3,7 +3,7 @@ import React from 'react'
/** /**
* Return the weather. This component is not loaded on the homepage, to test that getInitialProps works client-side too. * Return the weather. This component is not loaded on the homepage, to test that getInitialProps works client-side too.
*/ */
export default class TopArticles extends React.Component { export default class Weather extends React.Component {
static async getInitialProps ({ props, req, res }) { static async getInitialProps ({ props, req, res }) {
// Fetch the weather from a remote API, it may take some time... // Fetch the weather from a remote API, it may take some time...
return new Promise(resolve => { return new Promise(resolve => {
......
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