how to prevent scroll on top when state changes in react code example
Example: make a button who disable scrolling down the page react
.container::-webkit-scrollbar { display: none; }.container { -ms-overflow-style: none; }
.container::-webkit-scrollbar { display: none; }.container { -ms-overflow-style: none; }