Code: Select all
"use client";
import { useEffect, useRef } from "react";
export default function TestPage() {
const scrollPage = useRef();
useEffect(() => {
scrollPage.current?.scrollIntoView({ behavior: "smooth", block: "end" });
}, [scrollPage]);
return (
bottom
);
}