This project demonstrates the Search Bar with Autocomplete feature in a Create React App.
-
This extends on the Creating Real-Time Autocompletion With React: The Complete Guide
-
Features
- Typescript
- Functional Components
- Hooks - Custom hook
useAutoComplete
- Search Debouncing
- Searching Indicator
- Mock Service Worker for the Autocomplete API mock
- Save the last x number of searches (configurable)
- React Testing Library for React Hooks integration to test the custom hook
useAutoComplete
-
Credits
- Mock data generated from https://www.mockaroo.com/