K
K
KnightForce2017-10-14 01:17:06
React
KnightForce, 2017-10-14 01:17:06

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

1 answer(s)
A
alvvi, 2017-10-14
@KnightForce

redux.js.org/docs/faq/ReactRedux.html#should-i-onl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question