Advertisement
Guest User

Untitled

a guest
May 24th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. let FilterInput = React.createClass({
  2. render: function() {
  3. return (
  4. <input className={this.props.className} placeholder=={this.props.placeholder} />
  5. // or more terse
  6. // <input {...this.props} />
  7. );
  8. });
  9.  
  10. <div className="row header">
  11. {map(COLUMN_PROPERTIES, (key) => (
  12. <FilterInput
  13. className={key + "-filter"}
  14. placeholder={ key === 'is_enabled' ? 'E' : key } />
  15. )
  16. )}
  17. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement