Skip to content

PTBC9 Weather App - HY#53

Open
magiicloud wants to merge 8 commits intorocketacademy:mainfrom
magiicloud:main
Open

PTBC9 Weather App - HY#53
magiicloud wants to merge 8 commits intorocketacademy:mainfrom
magiicloud:main

Conversation

@magiicloud
Copy link
Copy Markdown

No description provided.

Comment thread .env
@@ -0,0 +1 @@
REACT_APP_API_KEY=6a3affea0dc3f2287d470f99deb8e2f2 No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

never commit the .env file. Always include it in the .gitignore file and make sure to never commit and/or push the .env!!!
Please revise https://bootcamp.rocketacademy.co/2-full-stack/2.2-advanced-react/2.2.7-environmental-variables

</form>
</div>
<div className="text-white">
{this.props.icon !== "" && (
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.props.icon !== "" && (
{this.props.icon && (

Comment thread src/weatherAPI.js
};

render() {
return <></>;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why use a component if you do not return anything? Might as well just use a simple JS Script without any React functionalities. With function components you could make it a custom hook if you need state, useWeatherAPI for example.

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