Skip to content

Qianling PTBC9#52

Open
Qiannnly wants to merge 12 commits into
rocketacademy:mainfrom
Qiannnly:main
Open

Qianling PTBC9#52
Qiannnly wants to merge 12 commits into
rocketacademy:mainfrom
Qiannnly:main

Conversation

@Qiannnly

Copy link
Copy Markdown

No description provided.

Comment thread src/App.js

const handleClick = (e) => {
e.preventDefault();
getForecast(weather.lat, weather.lon).then((forecastedData) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice abstraction here with your getForecast function

Comment thread src/App.js
const [forecastedWeather, setForecastedWeather] = useState([]);

const handleSubmit = (e) => {
if (cityName === "") 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.

Suggested change
if (cityName === "") return;
if (!cityName) return;

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