score:0

Accepted answer
  function sendSingleCase(id) {
    const tempState = [...data];
    tempState.forEach((e) => {
      if (e.testfallid === id) {
        e.status = "pressed";
        console.log(e.status);
      }
    });
    setData(tempState);
  }

Related Query

More Query from same tag