arrow_backBACK TO DRILLS
Blue Belt - MediumrenderingPREMIUM
Incrementing a Global Variable During Render
A React component increments a global variable during render to track how many times the component has rendered. Why is this considered unsafe in React?