0 votes
in ReactJS by
Uncaught TypeError: Cannot read property 'Component' of undefined in React js

1 Answer

0 votes
by

in Place of

import React,{Component} from 'react';

use following import syntax

import * as React from 'react';

Related questions

0 votes
asked Nov 26, 2019 in ReactJS by AdilsonLima
0 votes
asked Jul 2, 2019 in ReactJS by Venkatshastri
...