We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324d08f commit bac7cc9Copy full SHA for bac7cc9
README.md
@@ -267,6 +267,7 @@
267
- [函数式组件](./react/函数式组件.md)
268
- [类式组件](./react/类式组件.md)
269
- [对state的理解](./react/对state的理解.md)
270
+- [字符串形式的ref](./react/字符串形式的ref.md)
271
272
273
## 常见问题及解答
react/字符串形式的ref.md
@@ -0,0 +1,7 @@
1
+
2
+```js
3
+// 字符串形式的ref
4
5
+// 组件内的标签可以定义ref属性来标识自己
6
+<input ref="input1" type="text"/>
7
+```
0 commit comments