A responsive search bar that interacts with the Algolia and Cloudinary API to present relevant results to the user
- Vite
- React
- TypeScript
- Custom Hook UseSearch()
-
Usage:
const [searchResult, setSearchTerm] = useSearch(SearchCache); /* // accepts a cache object as argument // returns searchResult<Object> and setSearchTerm<Setter> */
-
Handles queries to Algolia's API and caches previously searched values
-
- CSS Modules
- provides consistent and reliable styling
- Modular code structure
- makes adding and removing search sections and new search cards simple