diff --git a/components/core/Link.js b/components/core/Link.js index 05ba17ed..848f392a 100644 --- a/components/core/Link.js +++ b/components/core/Link.js @@ -2,7 +2,7 @@ import * as React from "react"; import * as Strings from "~/common/strings"; import * as Logging from "~/common/logging"; -export class Link extends React.Component { +class LinkPrimitive extends React.Component { state = { href: this.props.href ? this.props.href @@ -63,6 +63,7 @@ export class Link extends React.Component { }; render() { + const { style, innerRef, css, target, href, title, children, ...props } = this.props; return ( - {this.props.children} + {children} ); } } + +export const Link = React.forwardRef((props, ref) => );