app.tsx 423 B

12345678910111213141516171819
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { createRoot } from 'react-dom/client';
  6. import { unstableSetCreateRoot } from '@flowgram.ai/form-materials';
  7. import { Editor } from './editor';
  8. /**
  9. * React 18/19 polyfill for form-materials
  10. */
  11. unstableSetCreateRoot(createRoot);
  12. const app = createRoot(document.getElementById('root')!);
  13. app.render(<Editor />);