Skip to content

create searchBarRef, how to get text? #97

@fukemy

Description

@fukemy

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions