Assume that
const [first,change] = useState([])
I made a button which on clicking should clear the first array
const funct = () =&