J
J
javanub2019-01-12 19:59:59
React
javanub, 2019-01-12 19:59:59

Is it desirable that state be in one component?

There was an article on the medium, where in one of the paragraphs it was written that state should be kept in one component if possible. The question is, is this the right decision?
PS: I don't touch Ridax in this matter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-01-12
@javanub

This is one of the approaches. In my opinion, in terms of extensibility, this approach is wrong, because if you want to use a subordinate component somewhere else with all its logic, then you just won’t be able to connect it, you will have to somehow link it with the state of the main component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question