Skip to content

Instantly share code, notes, and snippets.

@bobylito
Last active December 8, 2016 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobylito/d496413e2f0bc9ce13f68d1f935c1430 to your computer and use it in GitHub Desktop.
Save bobylito/d496413e2f0bc9ce13f68d1f935c1430 to your computer and use it in GitHub Desktop.
Simple custom SearchBox for react-instantsearch.
const MySearchBox = connectSearchBox(({currentRefinement, refine}) => {
return <input type="text" value={currentRefinement} onChange={(e) => refine(e.target.value)}/>;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment