1.0.0 • Published 7 years ago

@sawtaytoes/react-lazyimport v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.