Skip to content

不能将类型 SetStateAction<number> 分配给类型 (value: number | null) => void #511

@woowalker

Description

@woowalker

onChange 的改动是否是破坏性改动?
const [val, setVal] = useState(0) <InputNumber val={val} onChange={setVal} />
造成了大面积编译不过

inputnumber

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions