I notice that inside class ExampleComponent extends React.Component {...} there are different ways of defining methods, with the former being a declaration for methods that is part of React and the latter being expressions for your own methods. Why is this? Why aren't they both in the same format?
  componentDidMount() {
    ...
  }
vs.
  myMethod = () => {
    ...
  }
 
     
    