Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 3 days ago

FM30 Hackathon Weather App

react, tailwind-css, accessibility, fetch, react-router
Amelia Dutta•190
@amelia2802
A solution to the Weather app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

This was my first time using API integration on a website, especially with live data implementation. I'm proud that I was able to successfully integrate the Open Meteo API and build the app, which updates dynamically based on the searched city. I also learned how to handle props in React while working on the hourly forecasts. This included passing data from parent to child, using callbacks to send data back up, drilling props through multiple components, and lifting state up so siblings could share data.

What challenges did you encounter, and how did you overcome them?

The main challenges I faced were fetching the API properly and the lack of understanding between the generic API URL and geo-coding API, as well as how to render and display the data on the webpage. I also used React to create the project, so I made several components, and passing the same value without repetition was tricky because siblings can't share values directly. So, I researched more about component hierarchy and passing values. I also struggled with displaying hour, time, and day formats initially, but I learned and applied those, along with calculating how to display weather codes, hourly weather, and times.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Amelia Dutta's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License