C
C
campus12018-07-22 13:17:30
React
campus1, 2018-07-22 13:17:30

Is the separation of components normal?

Hello. Is the separation of components normal and is it correct to make such transfers of props ??
https://codesandbox.io/s/r4y1nqqpko

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-07-22
@campus1

Is the separation of components normal?

Would you show something more complete... You only have 85 lines of code and you're worried about whether the components look good. SERIOUSLY??!
Doubtful. Why bother manually with four values? What if tomorrow it will be necessary to make 5 or 8 or 23 - will you copy-paste? You put them in a separate object and work with this object, like this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question