aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/test/fixtures/react-component/src/components/Suspense.jsx
blob: 87dc82625eb8c265a622083f6f52ee009cadfb09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React, { Suspense } from 'react';
const LazyComponent = React.lazy(() => import('./LazyComponent.jsx'));

export const ParentComponent = () => {
  return (
    <div id="outer">
      <Suspense>
        <LazyComponent />
      </Suspense>
    </div>
  );
};

export default ParentComponent;