let say I got a state like this
const [peoples, setPeople] = useState[
{name: 'Sam', power: 0},
{name: 'Tam', power: 0},
{name: 'Lam', power: 0},
{name: 'Bam', power: 0},
{name: 'Jam', power: 0},
{name: 'Yum', power: 0},
];
For example I wanna update the Bam power to 2, What is the correct way to update this kind of object array