【发布时间】:2021-03-16 01:18:03
【问题描述】:
我第一次在 WordPress 中创建自己的 Gutenberg 块。我收到一个错误:
SyntaxError: Unexpected token '
有问题的令牌出现在我的返回数组之后
index.js
edit({attributes, setAttributes}) {
const{
title,
backgroundColor,
} = attributes;
return ([
<InspectorControls>
/** Code Block **/
</InspectorControls>,
<div>
/** Code Block **/
</div>
]);
},
/** Rest of Code **/
标记的“
【问题讨论】:
标签: javascript syntax-error jsx wordpress-gutenberg