S
S
Swaer2018-11-18 15:30:34
React
Swaer, 2018-11-18 15:30:34

Where is the right place to place logic in react+redux?

I have cards (each card is a component), they are on the field (it is also a component and renders all the cards on its own), where to store the logic cube I turn the cards, hide them and do everything with them, but I don’t know where to put all this, I have done it in action so far, there all sorts of functions are dispatched inside a large function, and then I just hang this function on each card, or I need to place the logic in the field component (in fact, just dispatch these functions from the action in the component) and then pass it to each card how and why?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question