Layout scaffolding for Web apps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tsx 300 B

12345678910111213
  1. import { Suspense, lazy } from 'react'
  2. const ReactMarkdownShim = lazy(() => import('react-markdown'))
  3. const ReactMarkdown = (etcProps: any) => {
  4. return (
  5. <Suspense fallback={<div>Loading...</div>}>
  6. <ReactMarkdownShim {...etcProps} />
  7. </Suspense>
  8. )
  9. }
  10. export default ReactMarkdown