I
I
Isaac Clark2015-10-06 17:06:08
JavaScript
Isaac Clark, 2015-10-06 17:06:08

React.js: how to pass data from one module to another?

Hello, such a question: the application is based on react, there is a main module Main , into which module A and module B are connected .
Module A requests data from the server, receives it and filters it, and then adds it to the array.
Question: how can I transfer data (array) from module A to module B if they are not interconnected, that is, module A and module B are loaded into the Main module and drawn in it?
As an option: make a request in the Main module itself , process this data and pass it to module B? But it seems to me that this is not true, because the data that belongs to module A is better to process in it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_ _, 2015-10-06
@Dark_Knight

Well, for this, as far as I understand, they came up with Flux - read

A
ajaxtelamonid, 2015-10-06
@ajaxtelamonid

It seems to me that the option is quite normal. And here: habrahabr.ru/post/266559

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question