我是React和Wordpress Gutenberg区块的新手。我想知道下面的代码在ES5中是什么样子。
const MyCheckboxControl = () => (
const [ isChecked, setChecked ] = useState( true );
<CheckboxControl
heading="User"
label="Is author"
help="Is the user a author or not?"
checked={ isChecked }
onChange={ setChecked }
/>
) );