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.
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-1b33557-2be9c.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-1b33557-2be9c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?