oscar castaneda
Frontend

What React Taught Me About Abstraction

Composition beats inheritance, and simplicity beats cleverness

A selection of artisan tools and handmade crafts displayed on a white desk, perfect for creative projects.

Photo by Pixabay from Pexels.

Before React, I thought abstraction was about creating generic base classes. But React shifted my thinking.

Now, I see abstraction as composition. You break things down into parts that can be combined, extended, and reused naturally.

When I build UIs today, I ask:

  • Can this component stand on its own?
  • Can it be reused with minimal props?
  • Is it trying to do too much?

Good abstractions feel boring. And boring is good.

Keep it simple. The more clever the component, the harder it is to debug.

Author

OC

Oscar Castaneda

Financial software development