Renders: 0
Renders: 0
Button with useState
Button clicked: 0 times
Renders: 0
Expensive result: 4999999950000000
Button with useRef
Button clicked: 0 times
Renders: 0
Expensive result: 4999999950000000
Renders: 0
Renders: 0