@sawtaytoes/react-lazyimport

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @sawtaytoes/react-lazyimport

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.38 kB

Total Files

5

Last publish

Collaborators

  • sawtaytoes