Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement