Skip to content

vardhan-venkata/react-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤗🤗 Happing Coding 🤗🤗

🌐 React Current Location Weather ⛈ APP 🌐

Description

  • This is a weather forecasting app developed in the react using semantic UI framework, openweather API. It will fetch the current location, using longitude and latitude, and will show the weather details.

Demo URL

https://vardhan-venkata.github.io/react-weather-app/

Packages Used

Usage

In this application, we have done a simple application where we learned API fetching, rendering API data, Let's go through everything we have done so far.

We Learned about State and Props

  • State and Props are very powerful features in React. They are used to manage data and control its flow within different components.

  • In our application, we are managing the state which the state of the application. For example, the name of the city, the temperature, the date, humidity, and all. They vary from user to user, depending on their location.

  • Props, on the other hand, are used to pass data between components. We are getting the data in our app.js file, but we are reading it in weather.js. Remember, props can only be used to pass data from the parent component to the child component.

We Used React Hooks

  • If you have used class components, then you must know about life-cycle methods. If not, they are the methods that are called when our page renders or re-renders. But we can't use life-cycle methods in functional components, as they are specially built for class components.

  • So, React Hooks is the alternative. We have used two hooks in our application. One is useState, used to manage the state of the application. The other is the useEffect, which loads when the page is rendered or loaded.

We Tried Out Semantic UI

  • Semantic UI is a library for React that has predefined awesome components.

That's all, folks. You can add more features to the app, like a five-day forecast, icons, responsiveness, and more.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published