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 on React.
Browse by tag
The most-copied example in every tutorial is the one place you shouldn't use them.
The tools I actually reach for when building production apps, from framework to the moment a user hits a bug.
Learn why you should organize your code by what your app actually does, not by technical roles.
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)
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.
How automated formatting and linting enhance code quality and collaboration?
A Senior Engineer’s Guide to Effective React Testing (includes Cheat Sheet)
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.
I will walk you through my journey of migrating a React SPA from Bootstrap to Tailwind CSS. I will discuss the pros and cons of the architectural strategies considered during the migration. Then, I will move to the execution of the picked strategy and share some learned lessons throughout the whole experience.
Many software developers do not think a lot before picking either Bootstrap or Tailwind CSS. They go with Bootstrap when Tailwind CSS is more appropriate or vice versa. However, picking the right tool and technology for solving a problem is crucial.