easy-page-router
Version:
easy-page-router is a lightweight and easy-to-use JavaScript routing package that simplifies navigation in vanilla JavaScript, React, and React Native applications.
11 lines (10 loc) • 376 B
TypeScript
import React, { ReactNode } from "react";
export * from ".";
export type LinkProps = {
href: string;
className?: string;
children: ReactNode;
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
};
export declare function Link({ href, className, children, onClick }: LinkProps): React.JSX.Element;
export declare function useTitle(title: string): void;