JavaScript/react/React.forwardRef:修订间差异
来自康健生活
| 第22行: | 第22行: | ||
... | ... | ||
const FocusInput = forwardRef((props, ref) => ( | const FocusInput = forwardRef((props, ref) => ( | ||
< | <Input ref={ref} {...props}/> | ||
)); | )); | ||
const createTeamNameInputRef = useRef(); | const createTeamNameInputRef = useRef(); | ||