Kishan Zalariya
What are the 2 main differences between state(useState()) and references(useRef())?
By Kishan Zalariya in React on Mar 07 2021
  • Aadesh Saxena
    Mar, 2021 9

    basically, useState would be used in the cases when we want to maintain and update the properties during the re-rendering of view.useRef we will use if we want to persist the values throughout the lifetime of the component.

    • 3

Most Popular Job Functions


MOST LIKED QUESTIONS