react-simple-code-editor
react-simple-code-editor copied to clipboard
use react-syntax-highlighter
Current behaviour
任何的输入,会导<pre></pre>内元素的全量渲染,在大段代码进行更新的时候,会有一些卡顿。
Expected behaviour
在进行代码编辑的时候,只是触发那个元素的更新。
What have you tried
我正在尝试使用 prism-react-renderer 进行渲染.