[7.0] Fixes #5108, browser.js and browser.js test removed (#5124)

* Fixes #5108, browser.js and browser.js test removed

* Moved api/node.js to index.js and adjusted associated file references
This commit is contained in:
Jordan Jones
2017-01-19 22:43:11 -05:00
committed by Henry Zhu
parent e4ba28c294
commit 1742035a98
17 changed files with 73 additions and 141 deletions

View File

@@ -0,0 +1,10 @@
class AnchorLink extends Component {
render() {
const { isExternal, children } = this.props;
if (isExternal) {
return (<a>{children}</a>);
}
return (<Link>{children}</Link>);
}
}

View File

@@ -0,0 +1,13 @@
class AnchorLink extends Component {
render() {
var _props = this.props;
const isExternal = _props.isExternal,
children = _props.children;
if (isExternal) {
return <a>{children}</a>;
}
return <Link>{children}</Link>;
}
}

View File

@@ -0,0 +1,7 @@
{
"plugins": [
"syntax-jsx",
"transform-es2015-destructuring",
"transform-react-constant-elements"
]
}