Guide
How to Import

How to Import

For applications that don't utilize server-side rendering, such as those built with React + Vite, you can import directly:

import RichTextEditor from 'rich-text-editor-for-react'
import useRichTextEditor from 'rich-text-editor-for-react/hook'

For lazy loading, you can also utilize React.lazy and React.Suspense.