// This program has been developed by students from the bachelor Computer Science at Utrecht // University within the Software Project course. // © Copyright Utrecht University (Department of Information and Computing Sciences) import {useEffect, useRef} from "react"; /** * A React component that automatically scrolls itself into view whenever rendered. * * This component is especially useful in scrollable containers to keep the most * recent content visible (e.g., chat applications, live logs, or notifications). * * It uses the browser's `Element.scrollIntoView()` API with smooth scrolling behavior. * * @returns A `