Skip to content

React Reference Type #800

Answered by ericgio
kwburnett asked this question in Q&A
Jun 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @kwburnett, thanks for the question! As of v6.2, you can import TypeaheadRef from the package and use that to type the ref:

import { Typeahead, TypeaheadRef } from 'react-bootstrap-typeahead';

...

const ref = useRef<TypeaheadRef>();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kwburnett
Comment options

Answer selected by kwburnett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants