NAThank you for the feedback! Great example Said Mounaim Just to add; we can say; the state hook should be used for component re-rendering and the ref hook for information needed by event listeners and thus does not require component re-rendering.Reply·Article·Oct 10, 2022·The basics of React useRef Hook with Examples