Why am I still get this.state of undefined error when a state has a default state declared in the constructor?
constructor() {
super()
this.state = {
data: data,
q: null
}
}
filterC(o) {
if (this.state.q) { //wtf??
return o['Id'].includes(this.state.q)
}
return o
}