0
私はreactjsを使用していますが、これは私のcomponentcodeの一部です:私のjsxで予期しないトークンエラーを解決するには?
BabelLoaderError: SyntaxError: ../.../myComponent.js: Unexpected token (47:19
これは、let文を指している:私は私のコードを実行すると
myType() {
return myComponent;
}
render() {
return (
<div className="row">
{
let thisType = this.myType;
return (<thisType />)
}
</div>
);
}
私はこのエラーを取得しますか?
ありがとう –