Тёмный
No video :(

Build an Expense Tracker | React Hooks & Context API 

Traversy Media
Подписаться 2,3 млн
Просмотров 881 тыс.
50% 1

In this project we will take a vanilla JS expense tracker app and turn it into a React app using hooks (useState, useContext, useReducer) and the context API.
Build A Backend With Node.js/Express/MongoDB:
• Node.js & Express API ...
Original Repo:
github.com/bra...
React Version:
github.com/bra...
💖 Become a Patron: Show support & get perks!
/ traversymedia
Website & Udemy Course Links:
www.traversyme...
Follow Traversy Media:
/ traversymedia
/ traversymedia
/ traversymedia

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 551   
@TraversyMedia
@TraversyMedia 4 года назад
Here is part 2 where we take it a step further and build a backend API with Node/Express/MongoDB - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KyWaXA_NvT0.html
@JustchillBro9
@JustchillBro9 4 года назад
@@blockcoder8129 Hi, thanks for the code but I tried your code and it is throwing me an error " Cannot read properly 'apply' of undefined". If possible, can you please help me out with that. Thanks
@Bluesmile84
@Bluesmile84 4 года назад
Hi there - this seems very useful. Can you please share the video link for the plain vanilla javascript version of this app that you mentioned you converted to react in this video? Many thanks.
@igorpavlenko411
@igorpavlenko411 4 года назад
appreciate ur work man!!
@abhayganti8662
@abhayganti8662 4 года назад
@@Bluesmile84 I think the Vanilla JavaScript version is in his 20 Web Projects Udemy Course. Only the React version has a RU-vid Video
@vickyvignesh3523
@vickyvignesh3523 4 года назад
Bard will you provide the correct structure to follow for react ... For Big application How to maintain Context API ,, Need some Folder Structure,
@MrTaraskoro
@MrTaraskoro 4 года назад
Three years ago I tried to find simple and understandable video about the whole new and scary world of JS. And found this small channel with 15k subscribers where cool big guy explained basic stuff about JS. And after three years I still watch almost every video from Brad. And now you, Brad reached 1M subscribers. And I became Team Lead in small company in Ukraine. And all started from your channel and your talent to explain hard things as simple as possible. Thank you. All good wishes to you, your son and your family.
@TraversyMedia
@TraversyMedia 4 года назад
Thank you so much :) That comment made my day....
@yuryitikhonoff9631
@yuryitikhonoff9631 4 года назад
@Vladyslav Pokidin +
@ThatGuyDownInThe
@ThatGuyDownInThe 4 года назад
Yeah I definitely owe this dude.
@harshitsingh618
@harshitsingh618 3 года назад
Hoping that I had stumbled here back then
@collegemelody
@collegemelody 3 года назад
Lovely...
@aliajami24
@aliajami24 4 года назад
I'm here to tell you that thanks to your tutorials, your teaching style and your amazing knowledge I was able to find a job as a ReactJS developer with an amazing team who were surprised with all the knowledge that I learned from you! You helped me after struggling for almost a year without a job and it really brings a tear to my eye writing this while I'm doing my job and thinking about all the times I was watching your videos and dreaming of having a steady job one day. Thank you so much for everything you have done for me and everyone else, you are changing our lives... And with my 1st paycheck I also got your udemy courses on JS and React but it will never be enough for what I have learned from you! Thank you Brad
@paramgandhi5768
@paramgandhi5768 2 года назад
thereis not any tutorial video on thus channel,only projects,how did u learn?
@MrRuchir23
@MrRuchir23 4 года назад
Today I went to an engineering college for a lecture and I recommend your channel learning different technologies
@TraversyMedia
@TraversyMedia 4 года назад
ruchir saxena that’s awesome. Thank you
@deepakparamesh8487
@deepakparamesh8487 4 года назад
Hi Brad Sir, I initially started learning programming from your channel on 2017. Last Month I joined Microsoft, which is one of my dream company. I don't know whether you read this comment or not. I wanted to show my deep gratitude to you by becoming a patreon. Thank you once again. With love from India.
@tamirpolyakov1122
@tamirpolyakov1122 3 года назад
Congrats on the job
@Knowledge_VA
@Knowledge_VA Год назад
Congratulations bro 🥳
@Knowledge_VA
@Knowledge_VA Год назад
DEEPAK MAZA TU MITRA BANU SHAKTOS KA
@neha02818
@neha02818 Год назад
❤🎉congratulations
@michaelcyber4584
@michaelcyber4584 Год назад
Congrats
@cwcfunclock2709
@cwcfunclock2709 3 года назад
One of the best parts about this channel is being capable of explaining anything so that even a layman can understand in details.
@DennisIvy
@DennisIvy 4 года назад
Thought you would be on a week long binger after hitting 1million lol. I guess its just back to the lab for Brad :)
@TraversyMedia
@TraversyMedia 4 года назад
Nope, nothing stops :) just keep going
@flippinoutrock
@flippinoutrock 4 года назад
And that's what gets someone a million subs! Great work ethics! Brad will soon be at 2 millions!
@techbygul3303
@techbygul3303 2 года назад
Brad is at 2M
@rwshaw11
@rwshaw11 4 года назад
I finished making this same app using vanilla JS a couple days ago from your 20 Javascript Apps course on Udemy. Making this again with React, Hooks and Context API is the cherry on top! Thank you so much for this and I appreciate all of your professionally made content!
@mafh97
@mafh97 4 года назад
If you need to reset the "add transaction" form, just add these two lines: setText(''); setAmount(''); at the end of the AddTransaction() function in AddTransaction.js file. Great tutorial, thaks a lot!! :)
@woldemarkiev
@woldemarkiev 4 года назад
thanks for this comment :)
@Virus-ke8xj
@Virus-ke8xj 4 года назад
Done this 😁
@chintansharma
@chintansharma 4 года назад
Hey Brad, congrats on 1M subs! Very well deserved! Learned a lot from your vids. Thanks for all the great content!!
@Fullflexno
@Fullflexno 4 года назад
djenigma 👆🏾this! Thank you Brad!
@TraversyMedia
@TraversyMedia 4 года назад
Thanks :) and you are welcome!
@williamb4426
@williamb4426 4 года назад
Hi Brad. Wanted to thank you a lot for all your videos. It's been a while now that I discovered your channel (and your udemy classes), and it helped me a lot to transition from my old field of study (Neurosciences...) to being now a full time engineer & front-end dev in a nice company. Everytime I have doubts, or something I don't understand, I end up coming back to your channel, and there is a reason behind it...you just have one of the best dev channels on youtube and your way of explaining things is great. So thanks again and all the best to you (and other fellow devs reading this)
@Bebetter11111
@Bebetter11111 2 года назад
You left Neurosciences for Developer/engineer...you didn't like Neuroscience or was it too hard? just curious...
@williamb4426
@williamb4426 2 года назад
@@Bebetter11111 I liked the research and the academic part of it, but when it came to practice in the field I didnt like it as much as what I expected. And in France it's quite hard to work as a researcher, not a lot of jobs, not well paid. So I decided to change 🙃
@shaquilmaria8248
@shaquilmaria8248 4 года назад
Was planning on building one of these, and boom! Traversy uploaded a video about it. Great vid!!
@musicpodu8380
@musicpodu8380 5 месяцев назад
Actually It Helped me a lot to Understanding the React, reducer Concept. Thanks a lot Mr. Brad Sir, you're the Best in your way
@stevefu7317
@stevefu7317 4 года назад
From a noob to a technical leader of a startup, I really enjoy watching your videos and have been still learning loads of new stuff. Thank u Brad! Would really like to see more complex projects on advanced React Hooks like useEffect and custom hooks!
@Vichion
@Vichion 4 года назад
When you ran npm start an ad started on youtube. Blew my mind.
@samartajshaikh2601
@samartajshaikh2601 2 года назад
whoever convinced you to remake this application in react did the right thing
@seunmichael852
@seunmichael852 9 месяцев назад
Thank you so much. This is the first React project I coded along from beginning to the end. I am sure I'll understand how everything speak with each other as I continue. This gives me hope.
@Acumen928
@Acumen928 3 года назад
You're the best explainer of these concepts. I like how you actually talk through the code and explain what and why you are doing something rather than just say "next we do this, then we do that" like other instructors.
@zivtamary
@zivtamary 4 года назад
I seriously don't understand why would anyone click the dislike button? how bored are people? thanks for the vid Brad!
@aldocaamal7740
@aldocaamal7740 4 года назад
Usually people do it because they expect more, or just hating, some people find your videos useful and some others not, for example beginners will find this thrilling but people more advanced will just take a look and move on, sometimes leaving a dislike, but thats just how things are
@user-qy2wf2lt6v
@user-qy2wf2lt6v 4 года назад
I've been watching this channel for year now, and I can tell, that you are one of the few people on RU-vid who actually helped me to learn something and achieve some of my goals! Thanks for the awesome content! Congratulations on your well deserved success!
@VincentFulco
@VincentFulco 4 года назад
Terrific tutorial. Bought your reactjs: front to back course a few weeks ago. Very well done and complete. Thanks for everything.
@tessanathaniel
@tessanathaniel 29 дней назад
I really love this vid. Even though I didn't watch the crash course before watching it. Cz it made me want to learn react.
@opencubetechnologies948
@opencubetechnologies948 4 года назад
Thanks for all these videos brad. I had always a negative ATT towards js but this channel changed my whole perspective and kept me loving it. Many thanks from Kenya.
@sulemanahmed2408
@sulemanahmed2408 4 года назад
One should just buy all your courses and run through em! Great job
@sujalkhatiwada2267
@sujalkhatiwada2267 4 года назад
You're just spechless sir, We're blessed that we've got instructor like you, so that we can buy courses in just in price of food in udemy, god will bless you, keep making courses sir .
@patroclus8796
@patroclus8796 4 года назад
The best money iv'e ever spent was buying your courses. Thank you brad for making it easier for us ! you're a true hero!
@alanflynn3612
@alanflynn3612 4 года назад
Easily the best teacher on RU-vid, heres to hitting 2 million, well done sir
@tessanathaniel
@tessanathaniel 19 дней назад
I'm posting this comment here so that each time someone likes it, It will boost my moral to continue learning React
@infosandfacts7536
@infosandfacts7536 4 года назад
Hugs from Hamburg, Germany man. ;). I’m starting on a new job and needed react. You teached me to survive I hope :) thanks so much. 😘
@rockgames345
@rockgames345 4 года назад
You're absolutely amazing! The community is blessed to have you around to guide us all. Much love from India!
@polokojohnson7259
@polokojohnson7259 4 года назад
Brad thank you, ever since I started pursuing Web development you have been a great mentor and a role model for me. Your content is appreciated. I am from South Africa !
@kylehenson2259
@kylehenson2259 4 года назад
i think you're become a hero because you try shere your information for us
@UmJammaLamma
@UmJammaLamma 2 года назад
I followed this and converted it to use Redux instead of Context, great video, really easy to follow. Thanks!
@hossamelatmani5940
@hossamelatmani5940 Год назад
great video man , in arabic we say "chokran lak" as thank you 😎
@amirhosseinkhurizadeh8920
@amirhosseinkhurizadeh8920 4 года назад
I was just going to do this, take the expense tracker and make it into a react app for practice. I guess Brad read my mind.
@cecitorresmx
@cecitorresmx 4 года назад
Just that I needed! Thanks Brad, I always recommend your material to everyone that want to start to learn development or some senior mates that are curious about JS/Frontend stack
@SwamiNathansai
@SwamiNathansai 4 года назад
This one video will give complete understanding of hooks with global state. Thank u brad again
@abenjamin13
@abenjamin13 4 года назад
Congratulations on the 1 MILLION subscribers...VERY DESERVED for all that you teach us. And I greatly appreciate you building something with the context-api..I needed more practice.
@victornoagbodji
@victornoagbodji 4 года назад
you do have a gift for bringing these new web technologies down to a practical level! very grateful for all these videos you make 🙏 🙏 🙏
@fluntimes
@fluntimes 4 года назад
Great work again Brad. I am going to follow on from this tutorial and update the projects I have worked on from the Vanilla JS course by creating them in React. I've done this before and I always find it refreshing to not have to invoke so many createElement() calls!
@floughio
@floughio 3 года назад
420 balance, well played brad
@timurgolovinov
@timurgolovinov 4 года назад
Brad solved "+amount" problem as a legend!
@Kevin-jc1fx
@Kevin-jc1fx 3 года назад
Thank you so much Brad for this amazing and well-thought tutorial. It helps a lot to have the designs taken care of so that I can focus on code.
@kaushikakash8092
@kaushikakash8092 4 года назад
Such an awesome tutorial . Just today I was asked many questions from context API , would be a blessing if the vedio was released yesterday.
@kaushikakash8092
@kaushikakash8092 4 года назад
Hi can I reverse values stored in variables while destructuring. Like I have an array= [1,2,3,4] let [a,b,c,d] = [...array]; a stores 4, b stores 3 and so on?
@amanar06
@amanar06 4 года назад
@@kaushikakash8092 just do [d,c,b,a] = [...array]
@salkjshaweoiuenvohvr
@salkjshaweoiuenvohvr 4 года назад
Thank you so much Brad for Teaching Hooks in react! I very grateful to use this as a reference!
@patryk3852
@patryk3852 4 года назад
Hello Brad, 1 million subscribers - congratulations . I wish you all the best in the future. You're doing a great job. Thanks.
@DevOtionSynthax
@DevOtionSynthax 4 года назад
Although I didn't understand everything, I still followed through the entire course. Now onto part 2! :D
@Italya3343
@Italya3343 4 года назад
Thank you so much for sharing with us Brad!! Looking forward your react applications course in the future.. And really really wish that you consider converting your React course and MERN course that you already have on Udemy into MERN with Mysql/sequelize, while still using JWT for login,passport for social media, jwt routes admin/users, bcrypt, etc... The vast majority of Nodejs/react courses online have been made with MongoDB, therefore the market is really thirsty for MERN sql Technology! (Mysql/sequelize) Thank you so much for all your efforts and your help!
@mohdsarfraz1816
@mohdsarfraz1816 4 года назад
dont have enough words to appreciate your efforts for students like me
@dnielsen9713
@dnielsen9713 4 года назад
been a developer for a little bit and Brad has saved me at work mutliple times haha
@gonzatoto
@gonzatoto Год назад
The most important parts: 15:42 --> Setup the folders and files to create the GlobalContext 16:44 --> Set initial state 18:00 --> Create the Global Context 18:44 --> Create the provider component 21:00 --> Create the reducer 22:53 --> Wrap the App with the global provider 24:03 --> Access the Global State 35:55 --> Set State through context
@mwlai288
@mwlai288 4 года назад
I had this idea too. I completed the exchange rate calc in vanilla yesterday and the react version of it today.
@BondiBeachLover
@BondiBeachLover 2 года назад
This tutorial is really crazy, i understood perfectly. many thanks.
@Maha_560j
@Maha_560j Год назад
Thanks. I learned a lot about useReducer, useContext and createContext.
@rylanzhou7617
@rylanzhou7617 4 года назад
Honestly I watched tons of tutorials of React Hooks but this one literally gets me through to it :D
@jondarling7933
@jondarling7933 4 года назад
Nice!! I just completed this in your 20js projects. Gonna knock this out today. Congrats on the subs and continued incredible work.
@KETANRAMTEKE
@KETANRAMTEKE 4 года назад
Amazing tutorial. Context API explanation and implementation were very understandable. Thank you, and congratulations on 1M subs.
@MrAnegm
@MrAnegm 4 года назад
Great!! hope to see more projects using React for the frontend and Ruby on Rails APIs backend, also using bulk upload from CSV to load data to the database. Really appreciated!!
@ekeneidiagbor4678
@ekeneidiagbor4678 4 года назад
Brad. Thank you so much.. I can't thank you enough for all you've done for the community and most especially the next generation of developers. Can't wait to have the next video.
@rez41
@rez41 4 года назад
Awesome, I wanted to see context and reducer at work and you drop a video doing just that. Cheers Brad
@Virus-ke8xj
@Virus-ke8xj 4 года назад
Woooh! This was my first project in React! And yeah, as usual, Brad rocked! Will try to implement some project on my own😊😊
@andrew-tuts
@andrew-tuts 4 года назад
Thank you brad for your content i started following you last year and also looked into your udemy courses and i have not been the same THANK YOU very much....
@kalenzo78
@kalenzo78 4 года назад
Email bro I'm also from Uganda.. Still pushing on mukwaya78@gmail.com
@onedimensionalchess4373
@onedimensionalchess4373 4 года назад
Haha, I was thinking about this project the other day. I've only done the modal one so far. I wrote my own expense tracker in python a long time ago, and it basically eliminated all my overdrafts overnight, so this is a really awesome project, for sure. I think this one is more interesting, because if you had it on a server you could track a whole household and you would be free to use different devices.
@osamagamal495
@osamagamal495 4 года назад
instead of having to pass every function like (deleteTransaction) to the value property of the provider. we could pass dispatch instead. and use that dispatch on our components and leave our GlobalState neat and clean. (e.g): dispatch({type: "DELETE_TRANSACTION", id: props.transaction.id})} className={props.transaction.amount < 0? 'minus' : 'plus'}> {props.transaction.text} {sign}${Math.abs(props.transaction.amount)}x thank You brad an amazing tutorial like always.
@priyam715
@priyam715 3 года назад
for expense tracking use Moon Invoice application this app have so many features
@HimanshuYadav-nt9zp
@HimanshuYadav-nt9zp 4 года назад
Congrats man!! Its 1M.. really happy, proud amd thankful... enjoying your Udemy courses as well...keep up the good work
@eduardobaia1
@eduardobaia1 2 года назад
WOOOOW, thats amazing! I've learned a lot! Thank you so much!!!!
@TechnoDB
@TechnoDB 4 года назад
Congratulations for 1M+ subscribers Sir.. You deserved 100M+ Thanks for this React tutorial :)
@greenie62
@greenie62 4 года назад
Always appreciate the content. You're a major reason I know anything at all in this silliness. Congrats on the 1 mill!
@VisionLoka008
@VisionLoka008 Год назад
Hi sir, I'm going through the this tutorial, but I'm having an issue, when I add an item and amount and press add transaction. That item is not updating into the list... Can anyone tell me why is this and how to fix
@UmutcanKavak
@UmutcanKavak 9 месяцев назад
Dude that was challenging my head still hurts but one day I’ll come back to this video and say it was easy
@ananthnags237
@ananthnags237 4 года назад
Thanks Brad, This really helped in understanding Hooks and Context API. Can you please guide - how to populate initialState with api call. Thanks again
@wingsaber629
@wingsaber629 4 года назад
Look up useEffect to call apis
@evelynwilson9245
@evelynwilson9245 3 года назад
For expense tracking I am using Moon Invoice application this software is best for using.
@abeprangishvili
@abeprangishvili 4 года назад
wow !! i wish next react multilanguage
@alferatovic3396
@alferatovic3396 4 года назад
Got the update that Traversy dropped a new video. Time to start a new project !
@mohammadnaim9226
@mohammadnaim9226 2 года назад
This is such a beautiful and interesting project.I have enjoyed the full tutorial.Thanks a lot Brad Traversy for your effort to building such an amazing react project
@gogogogogogogogogogog9
@gogogogogogogogogogog9 4 года назад
best teacher ever even better than ones on my university
@majicMix911
@majicMix911 2 года назад
I learned so much from this video.
@alejandrorodriguezlopez5266
@alejandrorodriguezlopez5266 3 года назад
ALL HAIL @Traversy Media OVERLORDS!!!!
@iwswordpress
@iwswordpress 4 года назад
Well done on 1M! You have been very helpful.
@didarsubasi
@didarsubasi 2 года назад
Brad I really like the way you teach the projects, could you do more react projects yourself. its good to have guests to your channel but we are here for you Brad.
@phenixphyre666
@phenixphyre666 4 года назад
This video came out at the perfect time!! I wanted to learn hooks and context and then you released this video. Fantastic video as always, keep up the great work!!
@sunguru981
@sunguru981 4 года назад
FIRST OF ALLL CONGOOO FOR THE 1M Subs Brad. Just irrelevant, but the shade of blue which you used on the thumbnail was typescript react (JSX would be slight lighter). I was literally thinking that you were combining typescript template with all these other tech haha.
@yusy4code
@yusy4code 4 года назад
Hearty congratulations for your 1M subs. My best wishes to get more and thanks for all your knowledge sharing.
@rohailtaha9518
@rohailtaha9518 3 года назад
Awesome Project! Hopefully I will make it's backend after I learn the backend stuff.
@saicharan-ji9uu
@saicharan-ji9uu 2 года назад
How can we keep the transactions from deleting in history after refreshing the page without having the backend. After adding a few transactions i want to hold all the previous ones from clearing on refreshing the page.
@karimkazia
@karimkazia 3 года назад
Thank you for this video!!! you have made it so simple for me to work with reducer and context.
@mmv7826
@mmv7826 3 года назад
Battle of Thermopylae! History says it all :)
@auroshisray9140
@auroshisray9140 4 года назад
Thank you sir .... You really make it understandable... Grateful
@eazydatasolutions5800
@eazydatasolutions5800 Год назад
Great tutorial as always. I have just realized the power of React.🤓
@maharaj1991
@maharaj1991 4 года назад
Congrats on reaching 1M Brad, you're an inspiration! many thanks for creating such awesome videos! and this one came at such a perfect time, I was just looking for React projects to make!
@mikefazekas9267
@mikefazekas9267 4 года назад
I found if you put the example into the function App() before you type it at the top where the imports go it will automatically put the import up at the top of the file :) had no idea until I did twice and was trying to figure out how that got there lol.
@ducksoop.x
@ducksoop.x 4 года назад
Great time to get learning Hooks off my bucket list.
@iwillnotfollow
@iwillnotfollow 4 года назад
Congrats Brad on 1M Subs! Love your channel here in Kenya. Thank you for the great content. God bless!
@AH-cf9cv
@AH-cf9cv 4 года назад
congratulate Brad u cross one million subscriber and i am big fan of u since 2018.
@RNMERIA
@RNMERIA 4 года назад
Thank you & stay safe with ur family, situation in USA looks horrible
@DailyIntern
@DailyIntern 4 года назад
Nice one Brad, what can we do without him. So its 1m sub👌🏽👌🏽👌🏽.
@MULTICODE
@MULTICODE 4 года назад
Oh my GOD congratulations for the 1M subs. I'm very happy to get frequently notification from your channel. Keep up working hard to achieve your various goal
@TraversyMedia
@TraversyMedia 4 года назад
coderInProgress thank you 😊
@jesusidev
@jesusidev 4 года назад
Great tutorial! You should now do another video that cleans it up with immer
@kitkarson4226
@kitkarson4226 4 года назад
I really like Brad videos and I learn a lot. But what else is there in his Udemy courses which is not covered here? Can someone please explain.?
Далее
React & Tailwind CSS Image Gallery
38:56
Просмотров 219 тыс.
Every React Concept Explained in 12 Minutes
11:53
Просмотров 605 тыс.
Multi Step Form With React & Material UI
43:58
Просмотров 510 тыс.
Context API in react | get the concept
29:00
Просмотров 55 тыс.
The Importance of Specialization in Coding
7:13
Просмотров 226 тыс.
ALL React Hooks Explained in 12 Minutes
12:21
Просмотров 120 тыс.
Why Signals Are Better Than React Hooks
16:30
Просмотров 473 тыс.
Learn React With This One Project
42:38
Просмотров 769 тыс.
React Authentication App With Okta
56:23
Просмотров 118 тыс.