79274062

Date: 2024-12-12 06:42:55
Score: 1
Natty:
Report link

It seems like react has a state synchronisation misbehaviour. Add the key prop and set it to the checked state, this way you will be able to trigger the rendering.

<input
    id={item.id}
    type="checkbox"
    onClick={() => handleActive(item)}
    checked={item.isActiveMarket}
    key={item.id}
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cris Cirhuza