I'm trying to create a search/query functionality in an app I'm building and I'm a bit stuck. When a user enters their query into the search bar and presses the button, what is the appropriate behavior? Using React-Router, should I be using a <Link> and just passing the query as a prop? Should I be navigating using something like the useNavigate hook? There's also useSearchparams that is available...
Bit lost and intimidated tbh, so any help would be really appreciated.