@devgateway/dvz-ui-react
Version:
A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.
14 lines (13 loc) • 308 B
JavaScript
import { useEffect as o } from "react";
import { useLocation as n } from "react-router";
const l = () => {
const { pathname: t } = n();
return o(() => {
window.scrollTo(0, 0);
}, []), o(() => {
window.setTimeout(() => window.scrollTo(0, 0), 200);
}, [t]), null;
};
export {
l as default
};