scroll to top after change step

This commit is contained in:
Ehsan
2024-10-24 00:17:55 +03:30
parent b25289f88e
commit 94a81e6345
3 changed files with 12 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { useEffect } from "react";
function ScrollToTop() {
useEffect(() => window.scrollTo(0, 0), []);
return;
}
export default ScrollToTop;