转载:React 通过ref获取DOM对象或者子组件实例的用法

 

React 通过ref获取DOM对象或者子组件实例的用法

https://www.cnblogs.com/greatdesert/p/12697726.html

React 通过forwardRef获取函数组件内某个DOM节点或者子组件的实例  

https://www.cnblogs.com/greatdesert/p/12727281.html

posted @ 2021-04-01 16:58  韭菜茄子  阅读(173)  评论(0编辑  收藏  举报