useRef vs createRef在hook出现之前,通过使用createRef来获取dom节点实例 ... ref2 使用useMemo来缓存一个对象: {current: null} ,并且不指定依赖 ...
確定! 回上一頁