A
A
alex4answ2020-12-21 17:47:36
React
alex4answ, 2020-12-21 17:47:36

Where to prepare data for visualization?

Hello, I'm using React + Redux.
There is a component that uses the store, but the data needs to be collected from its different parts, combined, calculated, etc., etc.

I try to divide everything into Container/Component. (Smart/Stupid) Where

should I do this?
Should I create a container for the component, and in this container, prepare the data and pass props to the "simple/stupid" component?

Or can a simple component itself process, prepare, display, the data transferred to the props?

I'm a little confused about what a stupid, smart component can and can't do.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex4answ, 2020-12-22
@alex4answ

Additional to Vladimir Lewandowski 's answer .
I forgot the main message of the smart + stupid link - Reusability
, including between different projects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question