grungnet/src/components/Link.js
Mitchell McCaffrey e705ab2706 Fix nested a tag
2020-04-25 00:10:53 +10:00

14 lines
285 B
JavaScript

import React from "react";
import { Link as ThemeLink } from "theme-ui";
import { Link as RouterLink } from "react-router-dom";
function Link({ to, ...rest }) {
return (
<RouterLink to={to}>
<ThemeLink as="span" {...rest} />
</RouterLink>
);
}
export default Link;