Skip to content

Instantly share code, notes, and snippets.

@swaathi
Created September 16, 2015 18:00
Show Gist options
  • Save swaathi/5b47180b9f32db5a17b4 to your computer and use it in GitHub Desktop.
Save swaathi/5b47180b9f32db5a17b4 to your computer and use it in GitHub Desktop.
var SongsSearch = React.createClass({
render () {
return (
<div>
<form ref="form" action={ this.props.searchPath } acceptCharset="UTF-8" method="get">
<p><input ref="query" name="query" placeholder="Search here." onChange={ this.props.submitPath } /></p>
</form>
<a href="#" onClick={ this.props.cancelPath }>Cancel</a>
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment