score:1

Accepted answer
setBoard((currentBoard)=> {
    currentBoard.lanes[0].cards = [...currentBoard.lanes[0].cards, whateverCardYouWantToAdd ]
    return {... currentBoard} //necessary to create a new object because else the hook won't be updated
})

score:-1

const addValue = () => {
    let t = [...board];
    t[0].lanes.cards.push({
        id: null,
        title: "Bug #1",
        description: "Can AI make memes"
    });
};

Related Query

More Query from same tag