Solution : ReactJs Error 'Component' is not defined no-undef. Page 2

 Click Here to see the problem Previous Page


Solution : ReactJs Error 'Component' is not defined no-undef.


The solutions is as below

import React, {Component} from 'react';
import logo from './logo.svg';
import './App.css';

class App extends Component {
 render () {
    return (
      <div className="App">
            My First App
      </div>
    )
  }

}


This above piece of code fixed the error and page started to render on the browser


 Click Here to see the problem Previous Page

Comments