25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
344 B

  1. import { Suspense } from 'react';
  2. // project import
  3. import Loader from './Loader';
  4. // ==============================|| LOADABLE - LAZY LOADING ||============================== //
  5. const Loadable = (Component) => (props) =>
  6. (
  7. <Suspense fallback={<Loader />}>
  8. <Component {...props} />
  9. </Suspense>
  10. );
  11. export default Loadable;