Add comment about link component

This commit is contained in:
Fabio Berger
2018-10-01 22:07:03 +01:00
parent 136ef38277
commit 67a2359014

View File

@@ -9,6 +9,11 @@ export interface LinkProps {
className?: string;
}
/**
* A generic link component which let's the developer render internal & external links, and their associated
* behaviors with a single link component. Many times we want a menu including both internal & external links
* and this abstracts away the differences of rendering both types of links.
*/
export const Link: React.StatelessComponent<LinkProps> = ({
style,
className,