https://ru.reactjs.org/tutorial/tutorial.html
const header = document.querySelector(".header");
const onWheel = () => {
if (window.pageYOffset > 0) {
header.classList.add("header--scroll");
} else {
header.classList.remove("header--scroll");
}
};
document.onwheel = () => {
onWheel();
};