Answer the question
In order to leave comments, you need to log in
React Redux. Connecting one main file to store or many? What is more productive?
Question:
The application has a main file, App.js and many others.
1) Which is better, connect everything to it and send data to descendants through properties or context, and forbid extra render through shouldComponentUpdate
(since all data will pass through this file, it will constantly call render ).
2) Connect only the necessary files, providing them with certain data directly via connect ?
What is more productive?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question