title: when communicate between component in react or vuejs, what's the different between using callback and event
body: <p>As the title say,I am confused about communicate between parent-child components in react or vuejs.</p>
  
  <p>There are two different way to communicate between components.</p>
  
  <ul>
  <li>First,we can pass a method as a prop to the child component, then the child can communicate with the parent component through the method;</li>
  <li>Second,we can also dispatch an event in the child component and the parent can listen to the event then do something.</li>
  </ul>
  
  <p>My confusion is what is the difference.When should use method and when should use event?</p>