I have an array of objects and I want to update a value within those objects using the useState hook, but unclear on how to format this and get it working.
setCarUnsubscribeList(carUnsubscribeList => (carUnsubscribeList.forEach((car:CarSelections) => {
car.checked = true;
})));