Reusable components are nothing but gold

Ashish Kirodian
2 min readMay 10, 2020
Photo by La-Rel Easter on Unsplash

If the value of gold goes down by the end of this pandemic, please replace gold with some other valuable element for the comparison ;)

Why is this important? why is everyone insisting on this? why is the entire world stuck on this concept?

Well, if I tell you, by adopting this concept in your daily codebase you will be reducing the effort of building new or modifying the existing feature in your application by a huge amount.

I found this very important while developing React application for my current company. If you are working for a startup, you will notice that there will be a big need for developing applications faster as well as the flexibility of changing some behaviour/architecture of smaller feature or the entire application.

Now I am speaking with respect to a ReactJS developer.

If you had built your components in a reusable manner or had used a generic/abstract method to design the same, the above requirement would have been very easier to implement.

Let's take this simple example

I believe I don't have to explain the above cartoon strip to you. Its already dumbed down to ground 0.

As a matter of fact, I have used reusable components to build the very same cartoon.

See.. this is what I was saying.

This not only holds good for Front End development, but It is also pretty much same for all fields or stacks of development. For faster and efficient delivery of a product, Reusability or abstraction plays a very major role.

I have got good results by adopting reusability in my codebase as a Javascript developer. I build Front end applications using ReactJS, back end servers in NodeJs, Express. I have adopted the concept almost everywhere

I hope this helps someone in understanding the value of Reusability.

K.Thanks.Bye

--

--

Ashish Kirodian

Software Engineer | Previously Front -End Lead @ Riverus. | Senior developer at iManage | Javascript, Typescript, React, Redux, Saga, NodeJS, Express