If you need to wrap a component that uses ref in a HOC, including a React.forwardRef call will make it work. const withPropsLogger = (Component) ...
確定! 回上一頁