What am I doing wrong here?
I'm starting with this:
const [notificationList, setNotificationList] = useState([]);
The array is then populated. Afterwards I want to update every single object in that array... but not working.
setNotificationList(notificationList.map(notif => { ...notif, isRead: true }))
I think it's obvious but I need to sleep.