import React from 'react'; import ReactDOM from 'react-dom/client'; import { useForm } from 'react-hook-form'; import App from './app'; const FRAME_CONTENT = `
Loading content...
`; const FRAME_STYLE = { width: '640px', height: '480px', background: 'white', }; const CrossFrameForm: React.FC = () => { const ref = React.useRef(null); function renderFormInFrame() { const rootElement = ref.current!.contentDocument!.getElementById('inner-root'); const root = ReactDOM.createRoot(rootElement); root.render(); } return (