useState

accepts an initial state and returns two values:

  • The current state.
  • A function that updates the state.
  • 0

    0

    0

    This is a text

    useEffect

  • used to synchronize a component with an external system.
  • 0

    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