Skip to content

Using Typeahead as Ref / createRef<Typeahead<any>>() / TS 5.2 / react 18.2.0 #831

Closed
@UXMichael

Description

@UXMichael

I try to using Typeahead as Ref but TS throws an error

'Typeahead' refers to a value, but is being used as a type here. Did you mean 'typeof Typeahead'? ts(2749)

I tried to solve this with answers from stack overflow but nothing is working.

"react-bootstrap-typeahead": "^6.3.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions