---
description: "regReactChildren regReactChildren react 插件注册：给已有 children 属性注入新的 ReactNode"
category: extension-hooks
keywords: ["regReactChildren", "react", "插件注册", "组件复写", "组件替换", "无侵入二开", "插件", "weId", "错误边界"]
source: "https://www.e-cology.com.cn/utils/regReactChildren/freepass"
---

# regReactChildren regReactChildren react 插件注册

## 适用场景

给已有 children 属性注入新的 ReactNode

## 检索符号

- `regReactChildren`

## 代表示例

```js
import { regReactChildren } from "@weapp/utils"

regReactChildren(props: any, element: ReactNode, index = 0);
```

## 深入阅读
- [在线免登文档](https://www.e-cology.com.cn/utils/regReactChildren/freepass)

> 本卡用于快速选型。参数、返回值、限制和完整示例以原始文档为准。
