React Native has multiple components on a page, rendering different data separately. In which component should I process the data?

Q:React Native A page is composed of multiple components that render different data, so should I request this data through the main container component and pass it to the component through props, or render it directly after the request within the component?

now I use to request data and render separately in each component, but I find that if I print the data, there will be multiple outputs, which should be multiple renderings, right?

what should I do more appropriately?

Mar.06,2021

I recommend requesting and processing data in the main container.
the generally accepted design idea of React-Native is: create multiple stateless React Native components that are only responsible for rendering data, encapsulate them in a stateful React Native component, and pass the value of the state machine variable of this stateful React Native component to the stateless React Native component through props .
and your design idea is that the subcomponents of the page are closed and private, which is the opposite of the above design idea.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf5276-535ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf5276-535ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?