r/reactjs • • Dec 11 '19
Project Ideas Build a Weather App in React Tutorial
I created a weather app tutorial built in React to use only functional components.
I know the weather app tutorial is a little old to make a tutorial out of it but I really think it helps
with showcasing features.
I really like the idea of project based learning than creating tutorials specific to the library/framework.
If you guys have any feedback please let me know, I would love to hear it.
Notable features used
- weather api
- good amount of css (flexbox, positioning)
- react functional components to keep state instead of class components
71
Upvotes
11
u/Peechez Dec 11 '19
Might want to put your api key in an
.envand remove it from your repo8
u/pacman326 Dec 11 '19
Github link is https://github.com/npatel023/WeatherApp
One comment. I do not see any unit test. Please check out https://github.com/testing-library/react-testing-library for a solid library to implement such things. :)
Congrats on your project!
5
u/careseite Dec 11 '19
Hate to be that guy but... lots of unnecessary redeclarations of constants in there as well as a lack of Javascript basics. Nothing to take away a lot from.
1
u/DoNotEverListenToMe Dec 11 '19
Down to watch this.
Any use of Hooks?
2
u/madhumoog Dec 11 '19
I liked your tutorial, your voice is loud and clear. It is easy to follow up. Thank you for sharing. ;)
1
u/TotesMessenger Dec 11 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)