Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
ef13f5cc
Commit
ef13f5cc
authored
Aug 18, 2019
by
Kateryna Pohrebniak
Committed by
Tim Neutkens
Aug 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo in class name in with-react-esi example (#8414)
parent
ad77a550
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Weather.js
examples/with-react-esi/src/components/Weather.js
+1
-1
No files found.
examples/with-react-esi/src/components/Weather.js
View file @
ef13f5cc
...
@@ -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
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment