Skip to content

Commit bac7cc9

Browse files
committed
fix: --
1 parent 324d08f commit bac7cc9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267
- [函数式组件](./react/函数式组件.md)
268268
- [类式组件](./react/类式组件.md)
269269
- [对state的理解](./react/对state的理解.md)
270+
- [字符串形式的ref](./react/字符串形式的ref.md)
270271

271272

272273
## 常见问题及解答

react/字符串形式的ref.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
```js
3+
// 字符串形式的ref
4+
5+
// 组件内的标签可以定义ref属性来标识自己
6+
<input ref="input1" type="text"/>
7+
```

0 commit comments

Comments
 (0)