score:1

Accepted answer

you'll need to add a checkbox to each and remember selection in the state but the bare minimum will be something like

const myclock = react.memo(() => {
 const clock=[]
 for(let i=0; i<24; i++)
   clock.push( <li key={i}>{(i+":00").padstart(5,"0")}</li>);
 return clock;
});

Related Query

More Query from same tag