This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components:search): add
searchbar
component
## what - add `searchbar` component ## how - use react `useState` to keep track of search string - also using useState because the component will rerender when the state value changes, causing react-query hook to send request to api - use react-query hook `useFetchSearch` to send a GET request to api for searching username or problem number - use a form to render the search input - use a div to display the search results - if there's search results, display a link ## why ## where - ./src/components/searchbar.tsx ## usage
- Loading branch information