# dash-react-scan-plugin **Repository Path**: cnfeffery/dash-react-scan-plugin ## Basic Information - **Project Name**: dash-react-scan-plugin - **Description**: 同步Github dash-react-scan-plugin仓库 - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: https://github.com/CNFeffery/dash-react-scan-plugin - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-22 - **Last Updated**: 2025-07-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dash-react-scan-plugin [](https://github.com/CNFeffery/dash-react-scan-plugin/blob/main/LICENSE) [](https://pypi.org/project/dash-react-scan-plugin/) [](https://github.com/astral-sh/ruff) 简体中文 | [English](./README.md) 适用于[Dash](https://github.com/plotly/dash)应用的页面组件渲染性能监控插件,基于`Dash Hooks`+[react-scan](https://github.com/aidenybai/react-scan)实现,用于在当前`Dash`应用页面中添加额外的组件渲染性能监控功能,帮助开发者发现性能问题从而启发优化方向。 ## 安装 ```bash pip install dash-react-scan-plugin ``` ## 使用 ```python from dash import Dash # 导入插件启用函数 from dash_react_scan_plugin import setup_react_scan_plugin # 为当前应用启用插件 setup_react_scan_plugin() app = Dash(__name__) # 其他应用代码... ``` ## 示例 执行示例应用,此示例演示了如何通过插件监控`Dash`应用程序中的组件渲染性能,该插件会自动将`react-scan`工具注入到当前`Dash`应用中,帮助开发者精准定位性能问题位置: ```bash python example.py ```