React hook for url searches
🏠 Homepage
✨ Demo
npm install @glweems/usesearch
import useSearch from @glweems/useSearch";
function SearchInput() {
const { inputProps, buttonProps } = useSearch();
return (
<div>
<input {...inputProps} />
<button {...buttonProps}>clear</button>
</div>
);
}
👤 Garrett Weems [email protected] (https://glweems.com)
- Website: https://glweems.com
- Twitter: @garrettlweems
- Github: @glweems
- LinkedIn: @glweems
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2020 Garrett Weems [email protected] (https://glweems.com).
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator