Skip to content

glweems/useSearch

Repository files navigation

Welcome to @glweems/usesearch 👋

Node.js CI Version Twitter: garrettlweems

React hook for url searches

Demo

Install

npm install @glweems/usesearch

Usage

import useSearch from @glweems/useSearch";

function SearchInput() {
  const { inputProps, buttonProps } = useSearch();
  return (
    <div>
      <input {...inputProps} />
      <button {...buttonProps}>clear</button>
    </div>
  );
}

Author

👤 Garrett Weems [email protected] (https://glweems.com)

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Garrett Weems [email protected] (https://glweems.com).
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator