ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
13 lines • 443 B
TypeScript
import type { RouterNavigateFunction } from "./RouterProvider.js";
/**
* Hook to access the navigate function.
* This is a router-agnostic wrapper that uses the configured router provider.
*
* @example
* const navigate = useNavigate();
* navigate('/posts');
* navigate('/posts', { replace: true });
* navigate(-1); // go back
*/
export declare const useNavigate: () => RouterNavigateFunction;
//# sourceMappingURL=useNavigate.d.ts.map