'Why I cant push an object to my array existing array?

Why I cant push this in my array ?

          setMessage(prevMsg => prevMsg.push({
            id: 9,
            user_id: 2,
            reciever: 1,
            text: 'Hallo, eine 5',
            images: [],
            video: null,
            sending: 0,
            pending: 0,
            read: 0,
            date: new Date()
          }))

......................................................................................................................................................................................................................................................................................................................



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source