Created
February 15, 2022 20:21
-
-
Save dialguiba/cea4a7e8bac7fcdffde8126aa9fe7aa9 to your computer and use it in GitHub Desktop.
Lazy
This file contains hidden or 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
const Loader = React.lazy(() => import("react-loader-spinner").then((module) => ({ default: module[spinner] }))); | |
const Loader = React.lazy(() => import(`react-spinners/${test}`)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment