JavaScript/react/React.RefObject

来自康健生活
Kangkk​(留言 | 贡献)2021年3月7日 (日) 16:05的版本 (→引言)

引言

示例

示例一

  ...
  dateWrap: React.RefObject<HTMLDivElement>;
  constructor(props: DateProps){
    super(props)
    this.dateWrap= React.createRef();
    this.state = {
       ...
    }
  }
...

error