An open API service indexing awesome lists of open source software.

https://github.com/selmasaltik/react-patterns-and-best-practices

React Patterns & Best Practices /// What I learned from "React - The Complete Guide 2024 (incl. Next.js, Redux) - Academind by Maximilian Schwarzmüller"
https://github.com/selmasaltik/react-patterns-and-best-practices

best-practices compound-components debouncing patterns react render-props

Last synced: 2 months ago
JSON representation

React Patterns & Best Practices /// What I learned from "React - The Complete Guide 2024 (incl. Next.js, Redux) - Academind by Maximilian Schwarzmüller"

Awesome Lists containing this project

README

          

***Exploring Advanced React Patterns & Repeating Key Best Practices***

- **Common Patterns & Practices**
- Compound Components, Render Props & More
- Applied To A **Demo Project**

**What Are Compound Components?**

**Multiple components** that don’t work standalone but instead **together**

[Compound Components](https://www.canva.com/design/DAGYYDdeNbo/jOkA9Fxt0ulumhKeC_kY8g/view?utm_content=DAGYYDdeNbo&utm_campaign=designshare&utm_medium=link2&utm_source=uniquelinks&utlId=h25c0223ff0)

[Compound Components In React — Smashing Magazine](https://www.smashingmagazine.com/2021/08/compound-components-react/)

**What Are “Render Props”?**

Passing a **function as a value** for the **children** prop

[Render Props](https://www.canva.com/design/DAGYYja_kZc/XY_k1K5bQxxYCxNwXBAIqg/view?utm_content=DAGYYja_kZc&utm_campaign=designshare&utm_medium=link2&utm_source=uniquelinks&utlId=hf44c75684d)

**Debouncing**

[Debounce - MDN Web Docs Glossary: Definitions of Web-related terms | MDN](https://developer.mozilla.org/en-US/docs/Glossary/Debounce)