Skip to content
Permalink
7e03cc3037
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 349 Bytes
open Bridge;
let createElement = (~url, ~txt, ()) => {
<a
className="text-blue-500 hover:text-blue-800"
href=url
onClick={e => {
ReactEvent.Mouse.preventDefault(e);
ReasonReactRouter.push(url);
}}>
{React.string(txt)}
</a>;
};
[@react.component]
let make = (~url, ~txt) => {
createElement(~url, ~txt, ());
};