Last active
December 8, 2016 13:55
-
-
Save bobylito/d496413e2f0bc9ce13f68d1f935c1430 to your computer and use it in GitHub Desktop.
Simple custom SearchBox for react-instantsearch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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