How to deal with the data of vue components?

write a vue component. Is it better to write the data of this component in the parent component and transfer it with prop, or to write data inside the component?
if you think about it in terms of reusability?

Mar.14,2021

my understanding is that if the data required by the component is not dependent on the parent component, it is maintained within the component itself, so that cohesion is better
if the performance or data is dependent on the parent component, then pass

through props.
Menu