import React, { Component } from \"react\";
import FormUpdate from \"../components/formUpdate\";
import { fetchClothingItem, updateClothingItem } from \"../actions/c
there is no state in constructor yet
if you want to set state in constructor you can do it like this
class SomeComponent extends Component {
constructor(props){
super(props)
this.state = { ... }
}
}
or even like this
class SomeComponent extends Component {
state = { }
}
but in this case babel should be properly configured