• github
  • facebook
  • twitter

Mixins Considered Harmful – React Blog

“How do I share the code between several components?” is one of the first questions that people ask when they learn React. Our answer has always been to use component composition for code reuse. You can define a component and use it in several other components. It is not always obvious how a certain pattern … Continue reading Mixins Considered Harmful – React Blog

Why React Hooks, and how did we even get here?

TL;DR: Hooks have learned from the trade-offs of mixins, higher order components, and render props to bring us new ways to create contained, composable behaviors that can be consumed in a flat and declarative manner. ? Source: Why React Hooks, and how did we even get here?

Older posts