D
D
dfv1232018-03-07 22:12:14
React
dfv123, 2018-03-07 22:12:14

When to use third-party components and when to write your own?

Let's say you're a remote worker and you're writing the front-end of an online store. The task is to make such a component:
5aa03757e32b9542321042.png
The developer takes a ready-made component, for example, from here https://ant.design/components/slider and customizes the design or writes his own component using <input type="range" />?
What about the datepicker, which looks different in every browser?
How to understand when to write a component from scratch, and when it is better not to produce unnecessary entities?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-03-09
@maxfarseer

I will add that sometimes the finished component is "brute force". For example, many people shove redux-form when you just need to check if the fields are filled, or shove redux when you need to bind 2 components with data ... or shove react when there is enough jQuery carousel (well, you understand ...).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question