📜  ref - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:27.940000             🧑  作者: Mango

代码示例2
React takes your JSX and constructs the actual DOM, which the browser displays. Refs tie these two representations together, letting your React component get access to the DOM nodes that represent it.

A ref holds a reference to a DOM node.