react-lazy-bundle
Facilitates lazy loading of React components, which optimizes application performance by loading necessary components only when they are needed. It simplifies the process of code splitting and enhances user experience by allowing placeholder content to display while components are loading.
Author

Sign312
No License
Quick Info
Tools 1
Last Updated 2026-02-19
Actions
Tags
reactlazycomponentsreact lazylazy bundleloading react
react-lazy-bundle
lazyload component for react
install
npm install bundle-loader
npm install react-lazy-bundle
usage
import React, { Component } from "react";
import Bundle from "react-lazy-bundle";
import Test from "bundle-loader?lazy&name=[name]!./test";
const BeforeLoadComponent = props =>
<div>
before load {props.name}
</div>;
class HomePage extends Component {
render() {
return (
<div>
<Bundle name="flypie" load={Test} beforeLoad={BeforeLoadComponent} />
</div>
);
}
}
export default HomePage;
