How js modifies a value of an item in an array through a trigger operation

let arr= [{text:"sdfa",completed:true,id:-1}, {text:"ssssss",completed:false,id:-2}];
arr.map ((todo) = >

<li onClick={//licompleted}>{todo.text}</li>

)

how do you write the onClick function here?

May.31,2022

  

at that time too much trouble to change the value of an item, in fact, directly return to the modified array

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf8f31-3a4e5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf8f31-3a4e5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?