Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question