The Best React Code I Wrote (Code Review)

  Рет қаралды 11,063

Cosden Solutions

Cosden Solutions

Күн бұрын

Try Brilliant Free for 30 days + 20% Off Premium Membership → brilliant.org/...
🚀 Project React → cosden.solutio...
📥 Import React (Newsletter) → cosden.solutio...
🧙🏻‍♂️ Habit Quest → habitquest.io
Join The Discord! → discord.cosden...
VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"
In this video we'll be reviewing the best code I've written so far in React! This is an app that I've built recently on the livestreams with you guys. It has tons of design patterns, best practices, and really cool solutions to problems. Let's look at the code and see how it was built!

Пікірлер: 25
@JanVerny
@JanVerny Күн бұрын
It's always interesting to look at someone else's code base. First impression is that I feel like typescript isn't being used to it's full potential in a lot of the places. I would certainly define ItemRarity type over using Item["rarity"], etc. And that using a centralized store like redux or something similar would significantly reduce the amount of info that needs to be passed around on the routes or remove the need for routing entirely. I am personally not a fan of routing outside of allowing for bookmarks, navigation, etc.
@martapfahl940
@martapfahl940 Күн бұрын
This code equals a composition. Great work!
@adityaprasad3122
@adityaprasad3122 Күн бұрын
I like your teaching style make a nextjs course ❤
@johngregoryfuntera670
@johngregoryfuntera670 Күн бұрын
@<a href="#" class="seekto" data-time="261">4:21</a> I think the way you can make the providers more cleaner and maintainable is to have a main app provider wrapper the stores all of the providers then just have children a prop. {children}
@amralimohamed6497
@amralimohamed6497 Күн бұрын
Love from Egypt 🇪🇬
@azerxkhamassi
@azerxkhamassi Күн бұрын
Should I assign setTimeout to a ref and clear it using clearTimeout in React to avoid potential memory leaks and ensure proper cleanup, or is there a more efficient approach for managing timeouts?
@XavierGoncalves89
@XavierGoncalves89 Күн бұрын
there is not need for a ref, just assign the id to a regular variable and clear it in the useffect cleanup
@orijoseph6179
@orijoseph6179 17 сағат бұрын
I’m a junior dev so I want to ask a question to make things clear, <a href="#" class="seekto" data-time="363">6:03</a> in this component you define queries and mutations, for my understanding we shouldn’t write business logic inside the components, but make custom hook instead to make the code more reusable, I would be happy if you can explain why you did it that way. I also see that later on you did implemented a custom hook, so why later on and not on <a href="#" class="seekto" data-time="360">6:00</a> ?
@mohamedsalimbensalem6118
@mohamedsalimbensalem6118 Күн бұрын
best react dev so far
@kthehatter
@kthehatter Күн бұрын
what about performance when using tailwind in expo project , and do you recommend it for production apps
@irfansaeedkhan7242
@irfansaeedkhan7242 Күн бұрын
Always quality content, love from Pakistan
@armaandhanji2112
@armaandhanji2112 Күн бұрын
Where can we find your stream?
@okkkk88612
@okkkk88612 Күн бұрын
Can you make a youtube course for beginners about Data structures and Algorithm please
@prashlovessamosa
@prashlovessamosa Күн бұрын
I miss the purple light in the background.😅
@icoderdev
@icoderdev Күн бұрын
Hi, Cosden ❤
@PSMercenary
@PSMercenary Күн бұрын
Senior level. Sure
@harshal_madgulkar
@harshal_madgulkar Күн бұрын
Love from BHARAT 🇮🇳
@Simple_OG
@Simple_OG Күн бұрын
Just say india
@harshal_madgulkar
@harshal_madgulkar Күн бұрын
@@Simple_OG Both are same bro
@Simple_OG
@Simple_OG Күн бұрын
@@harshal_madgulkar No one understands Bharat at an international level
@harshal_madgulkar
@harshal_madgulkar Күн бұрын
@@Simple_OG I hope they can use Google and see popular and greatest Flag there. And I am proud as it's the original name
@orijoseph6179
@orijoseph6179 17 сағат бұрын
I’m a junior dev so I want to ask a question to make things clear, <a href="#" class="seekto" data-time="363">6:03</a> in this component you define queries and mutations, for my understanding we shouldn’t write business logic inside the components, but make custom hook instead to make the code more reusable, I would be happy if you can explain why you did it that way. I also see that later on you did implemented a custom hook, so why later on and not on <a href="#" class="seekto" data-time="360">6:00</a> ?
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 39 М.
We stopped using serverless. The results are insane.
18:27
Theo - t3․gg
Рет қаралды 64 М.
Worst flight ever
00:55
Adam W
Рет қаралды 6 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 98 МЛН
I Rewrote This Entire Main File // Code Review
16:08
The Cherno
Рет қаралды 158 М.
When You Ask the Intern to Review Your Code
4:01
Nicholas T.
Рет қаралды 589 М.
iPhone 16 Pro review: only one reason to upgrade
22:40
The Verge
Рет қаралды 168 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 247 М.
This VS Code AI Coding Assistant Is A Game Changer!
14:27
codeSTACKr
Рет қаралды 190 М.
Modern Data Fetching in React (Complete Guide)
16:41
Cosden Solutions
Рет қаралды 44 М.
Amazing New VS Code AI Coding Assistant with Open Source Models
10:37