forwardRef 终于要被干掉了呀,我一直嫌它的 ts 类型难写,大部分时候都是直接用 props 传:
props.ref?: MutableObject<T> const internalReff = useRef<T>() const ref = props.ref ?? internalReff useImperativeHandle(ref, ...)
Why is this step necessary? hello.2heng.xin might not be the server where you are registered, so we need to redirect you to your home server first. Don't have an account? You can sign up here
hello.2heng.xin