useState(() => 0)
// this will not cause rerender
difference between useRef and useState is that useRef do not trigger re render
and value can be modified using ref.current object
and it is object don't de-structure it
useState(() => 0)
// this will not cause rerender
difference between useRef and useState is that useRef do not trigger re render
and value can be modified using ref.current object
and it is object don't de-structure it
For further actions, you may consider blocking this person and/or reporting abuse
Java para Iniciantes (Oracle) -
Raihan Yudo Saputra -
bsorrentino -
Madhu Kumar -
Top comments (0)