What is wrong with this React class?

import React, { Component } from 'react';

class Header extends Component {
  constructor(props) {
    super(props);
    this.state = {
      data: []
    }
  }

  render() {
    return (
      <div className="header">

      <ul className="">
        <li>Become a host</li>
        <li>Earn credit</li>
        <li>Help</li>
        <li>Sign up</li>
        <li>Log in</li>
      </ul>
      </div>
    );
  }
}

export default Header;

I keep getting an error that says ‘Component is not defined’

Aren’t I importing it at the top?

did you install react via npm or yarn etc?

Turns out I had some file path issues due to renaming the file and moving it. Drove me nuts for an hour.