Composition beyond props drilling.

Photo by Amélie Mourichon on Unsplash

In the previous article, we explored props drilling and how it can be used using composition in React.

Let’s assume I am a team member, and I discovered a card component that we would use everywhere in our application. Let us build it together.

Building a card component

Great! The card component does…

Before reaching for context or libraries, think about composition.

Photo by Kelly Sikkema on Unsplash

React implements a unidirectional pattern for data flow for building components. The pattern itself is not unique to React but is followed strictly.

Unidirectional data flow simply means that data can only flow in one way alone.

Following the definition — and if experienced with React — you would have…

Software engineering is an ever-evolving industry with various challenges faced by engineers or programmers. One of such is writing scalable and maintainable code.

One of the approaches taken towards a maintainable codebase is the abstraction and reusability of code to prevent duplications everywhere in our code. …

Boluwatife Fakorede

A frontend developer, while at that, just a curious cat that loves to share what he knows.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store