SyntaxFix
Write A Post
Hire A Developer
Questions
Moving the state inside the constructor function worked for me:
state
constructor function
... class MyComponent extends Component { constructor(man) { super(man) this.state = {} } } ...
Good Luck...