import { createRemoteSSRComponent } from '@modern-js/runtime/mf'; import Content from '../components/Content'; import './index.css'; const RemoteSSRComponent = createRemoteSSRComponent({ loader: () => import('remote/Button'), loading: 'loading...', export: 'Button', fallback: ({ error }) => { if (error instanceof Error && error.message.includes('not exist')) { return
fallback - not existed id
; } return
fallback
; }, }); const Index = () => (
); export default Index;