The question is simple: what is the ReactComponent component in the context of the architecture?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants vas , insolor , Vartlok , cheops , Nofate 20 Apr '16 at 15:53 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    what's the programming context ? - Grundy
  • @Grundy, for example, I can see you in the context of a biological species, in which you only bout just a mass, but I can in the context of a society, where you wake one of its links. - vas
  • one
    It has not become clearer. In the title, too, is to change - Grundy
  • I vote for closing this question as not relevant, because the responding contingent is not able to fully respond to this technology, since in the current segment it has not gained popularity yet. - vas

1 answer 1

This view is what is said directly on the React site :

Lots of people use React as the V in MVC.

  • abstract , ReactComponent itself is not used in its pure form, but on its basis heirs are created that are already used directly.
  • recursive (tree) , one component may contain other components, because of which a tree is formed, in which a separate component is a tree node .

In successor classes, they are often given other architectural roles, usually associated with the update of the view, such as event handlers , but this is already a weak part of the component itself.

  • @Vas I am a javist, loving reak. But your question is still not clear. Do you want to find out which pattern looks like ReactComponent? Unfortunately, architecture is often called not at all what is needed. Yes, this answer to the question in its current form answers. - Nofate
  • ... so, something I did not quite understand, that this now happened due to a sudden change of point of view. - D-side
  • @Nofate, to my regret, I am in a hurry now and I can continue the discussion only in the evening. Tell me, will it be easier for you to continue this topic later? In addition, I will do a few examples to show what I mean by the code. - vas
  • @ D-side I had a choice to argue or not. And as you noticed, the second still outweighed :) - vas
  • @vas ticking you supposedly agreed with my answer. I also did not intend to argue, you can always clarify the question and wait for a more accurate answer. And I'll just go on :) - D-side