Skip to content

PTBC9 weather app Patrick#51

Open
patrickkok wants to merge 6 commits intorocketacademy:mainfrom
patrickkok:main
Open

PTBC9 weather app Patrick#51
patrickkok wants to merge 6 commits intorocketacademy:mainfrom
patrickkok:main

Conversation

@patrickkok
Copy link
Copy Markdown

No description provided.

Comment thread src/App.js
Comment on lines +79 to +81
{this.state.weather && this.state.weather.length > 0
? weatherDisplay
: null}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{this.state.weather && this.state.weather.length > 0
? weatherDisplay
: null}
{weatherDisplay}

I think this would be no difference. Empty arrays will always return empty anyways, and so you wouldn't render anything unnecessarily here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants