Skip to content

Weather app#55

Open
Lili00ani wants to merge 3 commits intorocketacademy:mainfrom
Lili00ani:main
Open

Weather app#55
Lili00ani wants to merge 3 commits intorocketacademy:mainfrom
Lili00ani:main

Conversation

@Lili00ani
Copy link
Copy Markdown

No description provided.

Comment thread src/App.js
import axios from "axios";
import "./App.css";

const OPEN_WEATHER_API_KEY = "58b6f653523bf7394917009e6410008c";
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 your API key openly like so. This should only sit in the local .env file, and should never be commited or pushed to github. Please revise https://bootcamp.rocketacademy.co/2-full-stack/2.2-advanced-react/2.2.7-environmental-variables

Comment thread src/App.js
Comment on lines +34 to +35
rawData = response.data[0];
return rawData;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

since you name it cityGeoData hereafter, why not call it the same here?

Comment thread src/App.js
temperature: response.data.main.temp,
formInput: "",
});
return rawData;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this will not work. You do not have any rawData defined in this block.

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