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***
Hi, i want to create searchBarRef to avoid re-render searchBar and no need to using state to hold the text
now i want to get the text, but it's only return null, can u help?
here is my code:
seachBarRef.current.text