📜  react 中的引用钩子 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:17.633000             🧑  作者: Mango

代码示例1
import React, {useRef} from 'react'
const displayNode = useRef(null)
//action
displayNode.current.textContent = `${count} Appointments Successfully Uploaded`
//referenced object