import React, { useEffect } from 'react' import { useReactNodeView } from './useReactNodeView' export interface NodeViewContentProps { [key: string]: any, as?: React.ElementType, } export const NodeViewContent: React.FC = React.forwardRef((props, ref) => { const Tag = props.as || 'div' const { maybeMoveContentDOM } = useReactNodeView() useEffect(() => { maybeMoveContentDOM?.() }, []) return ( ) })