when i using react18 and using this as a component
const Editorx = ({ file }) => {
<MarkdownEditor value={file.content} onChange={(editor, data, value) => setContent(value)}>
}
than it give me a error
Uncaught TypeError: Cannot read properties of undefined (reading 'setSize')
it really spend me a lot of time to save this problem.and when i useing react under 18 .it works!
when i using react18 and using this as a component const Editorx = ({ file }) => { <MarkdownEditor value={file.content} onChange={(editor, data, value) => setContent(value)}> } than it give me a error Uncaught TypeError: Cannot read properties of undefined (reading 'setSize') it really spend me a lot of time to save this problem.and when i useing react under 18 .it works!