useState
accepts an initial state and returns two values:
The current state.
A function that updates the state.
0
+
-
done
0
Click here
0
Click Here
This is a text
useEffect
used to synchronize a component with an external system.
0
Click
useRef
The useRef Hook allows you to persist values between renders.
It can be used to store a mutable value that does not cause a re-render when updated.
It can be used to access a DOM element directly.
Hi
your favorite dish name is ice-cream
Change Name