---
title: "Discussion on \"Create a Weather App with React Hooks: Part 2\" | Hashnode"
description: "Discussion on \"Create a Weather App with React Hooks: Part 2\". For the first part of the project, we have used useState hook, fetched our data and console logged the data for any city typed by the user. \nBefore we continue, we need to remove some of the code from the last part to be able to use our custom hook. ..."
url: "https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Create a Weather App with React Hooks: Part 2](https://hulya.hashnode.dev/create-a-weather-app-with-react-hooks-part-2?utm_source=hashnode&utm_medium=feed)

For the first part of the project, we have used useState hook, fetched our data and console logged the data for any city typed by the user. Before we continue, we need to remove some of the code from the last part to be able to use our custom hook. ...

Nov 14, 2020 · 12 min read · hulya.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#fetch](https://hashnode.com/tag/fetch)
-   [#2articles1week-1](https://hashnode.com/tag/2articles1week-1)

## Written by

[Hulya Masharipov](https://hashnode.com/@HulyaK)

@HulyaK · New York, US

  
[View profile](https://hashnode.com/@HulyaK)

Technical Writer, Frontend Developer

## Responses 5

Markdown supported · ⌘↵ to post

[Ferrason Andreaa](https://hashnode.com/@andreaa23)

[Jul 25, 2024](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/66a1d3f643f1f078a95c7352)

With these steps, you now have a functional weather app using [Bou's Revenge](https://bousrevenge.io/) React Hooks. Continue to enhance your app with additional features and improvements

[Annata Evan](https://hashnode.com/@annata20)

[Jul 24, 2024](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/66a06c8213295c4600ef9adf)

Creating a Weather App with React Hooks involves multiple parts. [Pokerogue](https://pokeroguegame.io/) Part 2 of the process typically covers fetching data from a weather API and displaying it in your app.

[Nicholson Percy](https://hashnode.com/@moneybagsolve)

[Oct 19, 2023](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/65308b6a386f5e3a783e19bc)

Very good <3

[Emma Orabelle](https://hashnode.com/@emmaorabelle)

[Apr 13, 2023](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/6437b9a265650295409294fc)

Great, now that you have removed the onSearch function and the results state from the City Selector component, you can move on to displaying the data in your UI using the useEffect hook. [tunnel-rush.co](https://tunnel-rush.co/)

[Sewn Shara](https://hashnode.com/@shara123)

[Aug 9, 2022](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/62f1d099c1e76d621b3f8e78)

React hooks provide a way to register and access DOM events outside of the component itself. This means you can add event listeners that fire off when a user [quordle](https://quordle.onl/) taps on a button, or react to an alert message appearing in the browser’s status bar. In this tutorial, you’ll build an app that displays the current weather for a particular location, as well as how many hours of [subway surfers](https://subwaysurf.io/) sunshine there will be over the course of the day. You’ll use hooks to display both these pieces of information.

[Daria Smith](https://hashnode.com/@dariasmith)

[Dec 25, 2021](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/61c6aae41697f253954fdd0b)

Oh, what a wonderful thing, thank you for the introduction, it changed my way of thinking. Thanks for this valuable information to all. Oh, what a wonderful thing, thank you for the introduction, it changed my way of thinking. Thanks for this valuable information to all. [tunnel rush](https://tunnel-rush.com/)

[larry church](https://hashnode.com/@larryjchurch)

[Apr 26, 2021](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/60867049e1555b2a98aac9f6)

I have a task to develop a weather app at college and I am grateful I find a source code here in an open access. That's very important for students and beginner developers.

[Guide to creating software to](https://hulyakarakaya.hashnode.dev/) [write my research paper](https://proessays.org/write-my-research-paper/)

[Hulya Masharipov](https://hashnode.com/@HulyaK)

[Apr 26, 2021](https://hashnode.com/posts/create-a-weather-app-with-react-hooks-part-2/5faf834dab2abe435ce68afd/comment/60867049e1555b2a98aac9f6#reply-6087474dc126f30b01abe2b2)

Glad to help [larry church](https://hashnode.com/@larryjchurch)
