Modifyin an element in React.js using ref

后端 未结 0 1854
走了就别回头了
走了就别回头了 2021-02-20 02:35

Why isn\'t a good practice to modify an element using ref.current in React.js? Example:

const myRef = useRef(null);
..........................
return 
相关标签:
回答
  • 消灭零回复
提交回复
热议问题