import React from 'react' import Loadable from 'react-loadable' const DefaultLoadingScreen = ({ isLoading, error }) => { // Handle the loading state if (isLoading) { return
Loading...
} else if (error) { return
Sorry, there was a problem loading the page.
} else { return null } } export const registerFeature = (loader) => ( Loadable({ loader, loading: DefaultLoadingScreen, }) )