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;
React Lazy Bundle
by Sign312
Project Details
- Sign312/react-lazy-bundle
- Last Updated: 10/17/2024
Recomended MCP Servers
Knowledge Graph Memory Server
simple memory mcp server with custom memory location
SwitchBot Server
Docling Server
An MCP server to help you "play with your documents" via Docling
test2
DependencyMCP Server
A Model Context Protocol (MCP) server for analyzing code dependencies
Supabase MCP Server
Connect Supabase to your AI assistants
Jira MCP Server
MCP server that allows interaction with Jira using natural language
MCP Tool Server
A simple and clear example for implementation and understanding Anthropic MCP (on AWS Bedrock).
Mintlify Starter Kit
Linear MCP Server
GitHub API MCP Server
Rednote Automatic Xiaohongshu Commenting Tool
这是一个基于Playwright的小红书自动搜索和评论MCP,可以帮助用户自动登录小红书、搜索特定关键词、获取笔记内容以及发布智能评论。