import React from 'react';

class Header extends React.Component {
  render() {
    return <h1>Awesome List</h1>;
  }
}

export default Header;

import React from 'react';

function Header() {
  return <h1>Awesome List</h1>;
}

export default Header;

convert Header to stateless functional component