Home > Net >  Adding new item to Object useState
Adding new item to Object useState

Time:08-05

I need help, I have problem to add a new items to my Object useState, I want to add items array of object a new item, can some one help me?

my useState :

const [kolom, setKolom] = useState({
    ["Main-Todo"]: {
      columnName: "Todo",
      items: [
        {
          id: v4(),
          content: "Makan ayam di MCD            
  • Related