No video

Compound Pattern in React | #30 React Course

  Рет қаралды 8,152

Code with Sloba

Code with Sloba

Күн бұрын

Пікірлер: 34
@leonardocarvalho4111
@leonardocarvalho4111 8 ай бұрын
Amazing content, thank you. I finally understood why and how to use this pattern with your example.
@CodewithSloba
@CodewithSloba 7 ай бұрын
Glad it was helpful!
@yabancakali94
@yabancakali94 9 ай бұрын
Perfect video, I was struggling to get the concept but your video made it clear! Thanks!
@CodewithSloba
@CodewithSloba 7 ай бұрын
I'm glad you like it
@chillaxabhinav
@chillaxabhinav 3 ай бұрын
Very good video and simple explanation. 🥳
@CodewithSloba
@CodewithSloba 3 ай бұрын
thanks
@codewithtae6637
@codewithtae6637 Жыл бұрын
This sounds like something you would want to do early in a project. If you don't the refactor might be a nightmare!
@CodewithSloba
@CodewithSloba Жыл бұрын
Yes absolutely, all design and architectural decisions should be made as early as possible. That’s why planning is so important
@_tanzil_
@_tanzil_ 10 ай бұрын
Thanks for the clear explanation with simple example.
@CodewithSloba
@CodewithSloba 10 ай бұрын
Glad it was helpful!
@beloaded3736
@beloaded3736 Жыл бұрын
Hvala veliko Slobo, dobro objasnjeno.
@CodewithSloba
@CodewithSloba Жыл бұрын
Nema na čemu!
@yashwanthsrinivas
@yashwanthsrinivas 11 ай бұрын
Thanks for the awesome video! One of the very few videos that explained this properly!
@CodewithSloba
@CodewithSloba 7 ай бұрын
I'm glad you like it!
@darshilvaria441
@darshilvaria441 10 ай бұрын
Great explaination!
@CodewithSloba
@CodewithSloba 7 ай бұрын
thanks!
@md.asifal-mahmud5952
@md.asifal-mahmud5952 Жыл бұрын
Nice.
@CodewithSloba
@CodewithSloba Жыл бұрын
Thanks!
@frank13621
@frank13621 5 ай бұрын
Perfect thank you.
@CodewithSloba
@CodewithSloba 5 ай бұрын
You’re welcome
@ankushladani496
@ankushladani496 Жыл бұрын
Great ..❤
@CodewithSloba
@CodewithSloba Жыл бұрын
thanks
@nicus1504
@nicus1504 2 ай бұрын
Aren't you creating a circular dependency between ProductCard and ProductCardDescription? One of the rules in projects I work on is to never import anything from parent components.
@CodewithSloba
@CodewithSloba 2 ай бұрын
if there is a circular dependency I'm pretty sure it would crash.
@nicus1504
@nicus1504 2 ай бұрын
@@CodewithSloba no, it won't crash, but you're creating a potential case that's hard to debug.
@CodewithSloba
@CodewithSloba Ай бұрын
I see your angle
@zoki5388
@zoki5388 Жыл бұрын
Da li mozes napraviti video na temu typescript i useContext & useReducer.
@CodewithSloba
@CodewithSloba Жыл бұрын
useReducer sam vec napravio pogledaj video 25 iz ove serije. useContext je 12 video u ovoj seriji. Samo je ostao typescript to cu svakako odraditi u nekom od sledecih videa
@user-rv9kz9pk2c
@user-rv9kz9pk2c 9 ай бұрын
Do you have an example of this but for render dinamically and those flags you defined at the start being properties of each element of an array? I dont get the concept if is not going to be used for just hardcoded stuff
@CodewithSloba
@CodewithSloba 7 ай бұрын
I don't have concrete example but this should give you just an idea
@user-zi4gy8nk6d
@user-zi4gy8nk6d Жыл бұрын
Thank you, but I do not like it
@CodewithSloba
@CodewithSloba Жыл бұрын
Why not?
@user-zi4gy8nk6d
@user-zi4gy8nk6d Жыл бұрын
@@CodewithSloba The first version looked better. You create a component in one place and use it in many. Let it look messy in one place rather than everywhere else. This is purely my opinion and I could be wrong. (Translated by DeepL)
@CodewithSloba
@CodewithSloba Жыл бұрын
@@user-zi4gy8nk6d The thing is that compound components doesn’t look messy, they are much cleaner. Sometimes more code means more readability. Also this way component implementation is much simpler and more protected from bugs and weird logic. Also it’s much more versatile
How to Write React with Typescript | #31 React Course
17:57
Code with Sloba
Рет қаралды 1,3 М.
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 33 МЛН
Is remote work dead? 💀 #remote #remotejob #remotework
1:00
Code with Sloba
Рет қаралды 1,5 М.
Compound Components in React (Design Patterns)
18:21
Cosden Solutions
Рет қаралды 38 М.
Definitive Guide to React Component Design and the key to avoiding tech debt
1:23:30
Kevin Ghadyani - JavaScript
Рет қаралды 16 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 742 М.
❤️ The React Pattern I Don't Want To Miss!
10:25
Sakura Dev
Рет қаралды 9 М.
Design patterns in React
14:37
Cosden Solutions
Рет қаралды 161 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 159 М.
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 33 МЛН