---
description: "regReactPlugin regReactPlugin react插件注册：修改设置标签内的 title,placeholder 属性内容"
category: extension-hooks
keywords: ["regReactPlugin", "react插件注册", "组件复写", "组件替换", "无侵入二开", "插件", "weId", "错误边界"]
source: "https://www.e-cology.com.cn/utils/regReactPlugin/freepass"
---

# regReactPlugin regReactPlugin react插件注册

## 适用场景

修改设置标签内的 title,placeholder 属性内容

## 能力说明

底层 react 代码中埋入对应钩子, 注册使用对应方法

## 检索符号

- `regReactPlugin`

## 代表示例

```js
import { regReactPlugin } from '@weapp/utils';
regReactPlugin('setAttribute', (o) => {
  // do something
});

regReactPlugin('setTextContent', (o) => {
  // do something
});

regReactPlugin('setInnerHTML', (o) => {
  // do something
});

regReactPlugin('appendChild', (o) => {
  // do something
});

regReactPlugin('insertBefore', (o) => {
  // do something
});

regReactPlugin('setNodeValue', (o) => {
  // do something
});

regReactPlugin('createTextInstance', (o) => {
  // do something
});
```

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

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