✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

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;

Featured Templates

View More
AI Assistants
AI Chatbot Starter Kit v0.1
141 1202
AI Characters
Sarcastic AI Chat Bot
129 2037
AI Agents
AI Video Generator
258 2301
AI Engineering
Python Bug Fixer
122 1766
Customer service
AI-Powered Product List Manager
159 1159

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.