You're Using React Compound Components Wrong
The most-copied example in every tutorial is the one place you shouldn't use them.
22 articles in Software Design.
Browse by category
The most-copied example in every tutorial is the one place you shouldn't use them.
Learn how to improve your error handling in Node.js by using the Result Pattern.
Learn about eight practical tips on writing clean functions.
Learn about the five key ways a code can go wrong and know what to be careful about. (6 minutes)
Learn how to create and design better React components using the Compound Components React advanced pattern. (4 minutes)
Learn the benefits of using composition over inheritance in React projects. (3 minutes)
Learn about the layered approach when organizing your React component files. (3 minutes)
A practical look at applying the Open-Closed Principle to React. (4 minutes)
That's part of my book "The Conscious React" 📚
Learn how to properly load 3rd party scripts in React, improve performance, and avoid nasty bugs. (4 minutes)
A practical look at applying Single Responsibility Principle into React. (3 minutes)
Learn how to design and architect React Components based on User Interface Designs of Components and Pages. (5 minutes)
Accept that your code will never be perfect or final.
Optimizing React apps is about smart choices, not exhaustive tweaks.
Embrace the classless styling approach for better maintainability and readability
Explore the benefits of using the useReducer hook in React for more maintainable and readable components.
Learn how to make your React App scale.
Notes on using and not using state management and data fetching libraries in React.
Understand the different types of components to design better React apps.
The conscious road to more scalable designs of React applications.
And the power of YAGNI, KISS, and DRY
And why change and speed matter in today's world and competition.