import BraftEditor, { ControlType } from 'braft-editor'
For the default property BraftEditor
:
const BraftEditorNoSSR = dynamic(import('braft-editor'), {ssr: false})
How about that for the non-default property/symbol of ControlType
?
you can import the component like this
const ControlType = dynamic(() =>
import('braft-editor').then(lib => lib.ControlType),
);
or you can import default
const Braft = dynamic(() => import('braft-editor'));
Hope this helps!!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.