Hello everyone. I am having a problem with my code, I changed one unrelated thing and for some reason it just broke completely. I am getting the following error
./src/people.js Line 3:22: 'Component' is not defined no-undef
And this is people.js
import React from 'react';
class People extends Component {
state = { }
render() {
const {name,age,sex} =this.props;
return (
<div className='people'>
<div>Name: {name}</div>
<div>Age: {age} </div>
<div>Sex: {sex}</div>
</div>
)
}
}
export default People;
What am I missing here?