repo_description: 🔥 A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.
repo_topics: i18n immer offline-first react react-boilerplate redux redux-saga scaffolding styled-components webpack4
code: import React, { lazy, Suspense } from 'react';
  
  const loadable = (importFunc, { fallback = null } = { fallback: null }) => {
    const LazyComponent = lazy(importFunc);
  
    return props => (
      <Suspense fallback={fallback}>
        <LazyComponent {...props} />
      </Suspense>
    );
  };
  
  export default loadable;
  