Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. const Article = React.createClass({
  2.  
  3. propTypes: {
  4. highlighted: React.PropTypes.boolean
  5. },
  6.  
  7. render: function() {
  8. return (
  9. <article className={this.props.highlighted ? "highlighted" : "not-highlighted"}/>
  10. );
  11. }
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement