古腾堡反应:我需要在按钮单击上复制TextControl组件

问题描述

我想在按钮单击上复制TextControl。我可以使用允许的块来做到这一点,但我想复制多个TextControl组件。

<TextControl
tagName="p"
label="id"
placeholder=""
focus = {focus}
className="full-width"
help=""
value={ props.attributes.id }
onChange={ onChangeid }
keepPlaceholderOnFocus= {true}
/>
<button onclick="dupli()">Add more</button>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)