React Lazy Import
This is a super simple library which reveals the method lazyImport
for use in React component loading.
If you want to asynchronously load components with React, you have to import lazy
, pass it a callback, and import
that component yourself.
Instead, you could use this lazyImport
library instead to cleanup the readability instead.
For more information, read my reference article which covers this topic and goes into detail about why you'd want this functionality.