logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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

react-lazy-bundle logo

Sign312

No License

Quick Info

GitHub GitHub Stars 3
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

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;

See Also

`