Skip to content

Redux Weather Eval#85

Open
JonLayman wants to merge 3 commits intoprojectshft:masterfrom
JonLayman:master
Open

Redux Weather Eval#85
JonLayman wants to merge 3 commits intoprojectshft:masterfrom
JonLayman:master

Conversation

@JonLayman
Copy link

No description provided.


const dispatch = useDispatch();

const handleInputChange = (e) => {
Copy link

Choose a reason for hiding this comment

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

I would recommend using full names for variables instead of just e, use event

e.preventDefault();
if (city) {
dispatch(fetchWeatherData(city));
setCity('')
Copy link

Choose a reason for hiding this comment

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

Missing semi-colons

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