fix issue #5012 - Cannot read property 'declarations' of null (#5019)

- temporary fix
This commit is contained in:
Jason Aslakson
2017-01-19 21:36:18 -05:00
committed by Henry Zhu
parent e9fc38bcd3
commit ef25bebfa8
4 changed files with 36 additions and 1 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"
]
}