curiousroamers/src/client/Link.tsx

19 lines
321 B
TypeScript
Raw Normal View History

2020-11-22 14:45:51 +00:00
import React from 'react';
interface LinkProps {
className?: string;
to: string;
text: string;
}
/**
* @return {jsx} The root component
*/
export default function Link({className, to, text}: LinkProps) {
className = className || 'btn btn-primary';
return (
<a className={className} href={to}>{text}</a>
);
}