Created
April 13, 2015 18:33
-
-
Save jquense/fee1bf132c81cb01e2b1 to your computer and use it in GitHub Desktop.
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
let FilterInput = React.createClass({ | |
render: function() { | |
return ( | |
<input className={this.props.className} placeholder=={this.props.placeholder} /> | |
// or more terse | |
// <input {...this.props} /> | |
); | |
}); | |
<div className="row header"> | |
{map(COLUMN_PROPERTIES, (key) => ( | |
<FilterInput | |
className={key + "-filter"} | |
placeholder={ key === 'is_enabled' ? 'E' : key } /> | |
) | |
)} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment