Abhinav Kumar Singh

React.js

React : UseState vs UseRef

With the introduction of functional components in React, state and lifecycle management has become much simpler than it ever was using class-based components. To have the same state, useState hook has provided the most easy-to-use implementation. But do we need useState in all scenarios because each state change causes a rerender of our...

05-Apr-2023