In certain build setups, we can't use function.name, since the function will be mangled/minified, and so to ensure the MuiTiptap classes (like MuiTiptap-RichTextField-content) are static and consistent, we have to hard-code the component names as strings.
Fixes https://github.com/sjdemartini/mui-tiptap/issues/178
In certain build setups, we can't use
function.name
, since the function will be mangled/minified, and so to ensure the MuiTiptap classes (likeMuiTiptap-RichTextField-content
) are static and consistent, we have to hard-code the component names as strings.