The listener function is not registered in the functional components
react   Using Functional Component, I am trying to find the scroll position of an element,...
Tags: addeventlistener, react, javascript, reacthooks