Async Import React Component
Allows you to load React components asynchronously!
What it is?
This is a simple Higher-order function that allows you to load React components asynchronously from split chunks.
How to use?
Install
npm install async-import-react-component --save
Usage
You can use two methods, one is to pass in the function directly, and the other is to pass in as an object.
- Directly
const ComponentOne =
- Optically
const ComponentTwo =
Need help!
In view of the lack of self writing test ability, please have the ability to write unit test friend can contribute to improve this simple project, I will be very grateful to you.