我在React和TypesSript中实现了一个链接,单击后,滚动到正确的组件,我将使用useRef Hook。但是当我这样做的时候,错误就会发生:
Type '{ ref: MutableRefObject<HTMLDivElement | null>; }' is not assignable to typeProperty 'ref' does not exist on type 'I
我创建了一个项目使用电子反应样板https://github.com/electron-react-boilerplate/electron-react-boilerplate一切工作,但我决定添加antd接下来,我使用了一个类型为primary的按钮 some_component.tsx import React from "react";
import s from '.} 但是按钮的</