// This line should be there as shows import React, { Component } from 'react';
Must include "React" in the import line, see line 2. Import React, { Component } from "react";