5 React hooks that you should know
A quick info about 5 react hooks
Oct 14, 20253 min read34

Search for a command to run...
Articles tagged with #reactjs
A quick info about 5 react hooks

useRef Hook helps to create a direct reference to the DOM element, so we can access it and modify, like the JavaScript document.querySelector method. const refContainer = useRef(initialValue); It returns an object which has a property called .curren...

Well, what does this useEffect Hook does? To simply put, it helps us to do something after our component has rendered. React will run this after it has updated the DOM. So useEffect does not block the browser from rendering, but it is run after perfo...
