* Remove whitespace generation and rely on default printing Changes to printing: * Add newline after last empty SwitchCase * Add newlines around block comments if they are non-flow comments or contain newlines * Fix a few more fixtures
14 lines
265 B
JavaScript
14 lines
265 B
JavaScript
class AnchorLink extends Component {
|
|
render() {
|
|
const _props = this.props,
|
|
isExternal = _props.isExternal,
|
|
children = _props.children;
|
|
|
|
if (isExternal) {
|
|
return <a>{children}</a>;
|
|
}
|
|
|
|
return <Link>{children}</Link>;
|
|
}
|
|
|
|
} |