Skip to content

Instantly share code, notes, and snippets.

@Chalarangelo
Created October 31, 2017 13:19
Show Gist options
  • Save Chalarangelo/014ec4dc6a2212e82fad817277d5d58e to your computer and use it in GitHub Desktop.
Save Chalarangelo/014ec4dc6a2212e82fad817277d5d58e to your computer and use it in GitHub Desktop.
<input type="search" className="searchBox" onChange={event => {
if(event.currentTarget.value) this.searchPost(event.currentTarget.value);
else this.viewAll();
}}/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment