import React, { useMemo } from 'react' import { createEditor } from 'slate' import { Slate, Editable, withReact } from 'slate-react' import { withHistory } from 'slate-history' const StylingExample = () => { const editor1 = useMemo(() => withHistory(withReact(createEditor())), []) const editor2 = useMemo(() => withHistory(withReact(createEditor())), []) return (
) } export default StylingExample