M
M
magary42016-02-12 00:47:22
React
magary4, 2016-02-12 00:47:22

Wrapper for React components?

how to establish communication between components 1 and 2, so that from one it was possible to call the function of the second?
subtracted that only from the parent is possible,
but how can I create this parent so as not to render it?
it is already on the page, how to attach to it?

<div class="wrapper" id="parent">
   <!-- a lot of html ->
      < component1 />
   <!-- a lot of html ->
      < component2 />
   <!-- a lot of html ->
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman_Kh, 2016-02-12
@Roman_Kh

Establishing the right communication is best done with Flux .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question