The only advantages of forwardRef coming to my mind are: uniform access API for DOM nodes, functional and class components (you mentioned that); ref attribute ...
確定! 回上一頁