Skip to content

Instantly share code, notes, and snippets.

@jquense
Created April 13, 2015 18:33
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 jquense/fee1bf132c81cb01e2b1 to your computer and use it in GitHub Desktop.
Save jquense/fee1bf132c81cb01e2b1 to your computer and use it in GitHub Desktop.
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