1. 报错
2. 错误原因
Invalid DOM property `contenteditable`. Did you mean `contentEditable`?
由于在react中 contenteditable 是关键字,不能使用,只能用 contentEditable替代!!!
3. 解决办法
将 【contenteditable】 替换为 【contentEditable】!!!
4. 替换后报错
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.