Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create searchBarRef, how to get text? #97

Open
fukemy opened this issue Jun 28, 2022 · 0 comments
Open

create searchBarRef, how to get text? #97

fukemy opened this issue Jun 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fukemy
Copy link

fukemy commented Jun 28, 2022

Hi, i want to create searchBarRef to avoid re-render searchBar and no need to using state to hold the text

ref={seachBarRef}

now i want to get the text, but it's only return null, can u help?
here is my code:
seachBarRef.current.text

@WrathChaos WrathChaos self-assigned this Jun 28, 2022
@WrathChaos WrathChaos added the enhancement New feature or request label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants