Compound Pattern in React | #30 React Course

Опубликовано: 17 Январь 2025
на канале: Code with Sloba
9,226
415

In this video, I'm gonna show you how to use Compound design patterns to make your components more dynamic, to have more control, and to make them more granular.

At the same time simplifying the logic.

A compound component is one of the advanced patterns of React which makes use of an interesting way to communicate the relationship between UI components and share state without using props drilling.

🧿 I discussed:

✔️ How to create Compound components in React js
✔️ What problem does Compound design pattern solve

************************************************************
Previous Video:    • How To Create Your Own Hooks in React...  
Next video:    • How to Write React with Typescript | ...  
Full series    • Full React Course  
************************************************************

0:00 Intro
0:50 Problem
2:50 Implementing compound pattern
11:00 Outro

************************************************************

👉 Patreon:
✔️   / codewithsloba  

👉 Become a better developer with 2 minutes a day:
✔️https://codewithsloba.com

👉 Linkedin:
✔️   / slobodan-gajic  

👉 Instagram:
✔️  / codewithsloba