No-frills HOC to asynchronously load React components for code-splitting purposes.
npm install with-async-componentNo-frills HOC to asynchronously load React components for code-splitting purposes.
``js
import { withAsync } from 'with-async-component'
const getComponent = () => import('./App')
const LoadingOverlay = props => props.loading ?
const App = withAsync(LoadingOverlay)(getComponent)
``