Created
May 4, 2020 12:53
-
-
Save EnetoJara/41e9d732d3174a8f31b029cddb680628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import * as Loadable from "react-loadable"; | |
const Loading = (): React.ReactElement => <span>Loadong</span>; | |
export const List = Loadable({ | |
loader: () => import(/* webpackChunkName: "lists" */ "./list-constainer"), | |
loading: Loading, | |
}); | |
export const User = Loadable({ | |
loader: () => import(/* webpackChunkName: "register" */ "./users-container"), | |
loading: Loading, | |
}); | |
export const Lists = Loadable({ | |
loader: () => import(/* webpackChunkName: "LandingPage" */ "./lists-constainer"), | |
loading: Loading, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment