mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
12 lines
270 B
JavaScript
12 lines
270 B
JavaScript
class AnchorLink extends Component {
|
|
render() {
|
|
const _this$props = this.props,
|
|
isExternal = _this$props.isExternal,
|
|
children = _this$props.children;
|
|
if (isExternal) {
|
|
return <a>{children}</a>;
|
|
}
|
|
return <Link>{children}</Link>;
|
|
}
|
|
}
|