when writing a component, I don"t know whether my logical code should be placed in the component or in its parent component. The method is called through the parent component, and the data is obtained and passed into the child component. The child component is only responsible for rendering the data.
I don"t know which way is better. In other words, in which case which way is better. Is there a boss who can solve my doubts? Thank you ~