'How to scroll down slightly with onClick function

how do I scroll down slightly in react and choose the X or Y amount. I do not want to scroll to a component. I do not want to scroll to the top or bottom. I simple want to set the Y amount of scroll slightly.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source