报错信息
- 示例:
- 解析:
Warning: A component is `contentEditable` and contains `children` managed by React.
It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated.
This is probably not intentional.
警告:一个组件是`contentEditable`并且包含由React管理的`children`。
现在您的责任是确保这些节点中没有任何一个被意外修改或重复。
这可能不是故意的。
解决方法
- 加上
suppressContentEditableWarning
属性
<p suppressContentEditableWarning contentEditable="true" }></p>