Best ways to update state array object using React Hooks?

I have   const [data, setData] = useState([{"name": "joy", "age": 25}, {"name": "tom", "age": 41}]);...
Tags: reacthooks, react