It totally depends on the dev team. We can always build our own, as long as we commit to maintaining it in the future.
Let us say, we have to deliver a carousel in 1 week. But at the same time, you know, you probably don’t need a library to build it. So build it! But it probably won’t be the best one out in the market, but it will be good enough to satisfy the business need. After you have delivered the module, take some time to perfect it, by documenting it, so that it is easier for others to maintain in case you leave your company.
I will quote from the blog
As time passed by, I realized there was no point in reinventing the whole wheel. Unless we have a lot of time to develop and document the same so that it can be understood by all.
I think the heading should be
Don’t reinvent the wheel, unless you are ensuring it is maintainable in the future for others