score:0

Accepted answer

your function gets the object as a parameter. expose field that you needed

i don't see the whole picture, but can guess that you need something like

onsearchchange ({ target: { value: incomevalue } }) {
    const value = incomevalue.trim()
    this.setstate({ searchvalue: value, userinteractedwithcomponent: true })
}

Related Query

More Query from same tag