main.tsx 472 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import ReactDOM from 'react-dom/client';
  3. import { ToastContainer } from 'react-toastify';
  4. import { Playground } from './client/components-internal/playground';
  5. import './main.scss';
  6. const rootElem = document.getElementById('root');
  7. if (rootElem === null) {
  8. throw new Error('Failed to find the root element');
  9. }
  10. ReactDOM.createRoot(rootElem).render(
  11. <React.StrictMode>
  12. <Playground />
  13. <ToastContainer />
  14. </React.StrictMode>,
  15. );