Skip to content

Latest commit

 

History

History
 
 

search-params

title toc
Search Params
false

Search Params Example

This example demonstrates how to read and write the URL query string using the useSearchParams() hook. This hook is similar to the useNavigate() hook, but just for the search portion of the URL.

In this example, we have a form to search for a user on GitHub and display their user profile.

Preview

Open this example on StackBlitz:

Open in StackBlitz