I'm wondering whenever is a good practice importing a simple task component, e.g., something grabbed from here github.com/brillout/awesome-react-components or just implementing it.
On my projects I usually implement those little components but then I realize I keep repeating myself. Now I'm thinking about creating my own library but it would take a lot of time.
What do you think guys? I'll appreciate your answers.
It will depend on your situation.
It is cost vs benefit. If you are making a lot of short term projects that you don't maintain long term, I'd say go with those components. Otherwise if you constantly build up over your project, as the complexity grows more you will start to struggle with the 'premade solutions' in order to 'bend' them to behave the way you want them to.
I maintain long term projects that are relatively more complicated. So I rollup my own.
Ozzie Neher
Full Stack Dev
It totally depends on your situation.
Have low budget / tight deadline? It might make sense to use the prebuilt ones and save some time. Often when you make your own components like these, you spend 80% of the time maintaining them when that time could be spent actually working on app itself.
But if the prebuilt solutions don't suit your business needs—or if you're doing this for fun / educational purposes—roll your own! It's a lot of fun to make your own and optimize them for your use case, plus the added benefit of knowing everything inside out and being able to add features as you need them.