Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Article = React.createClass({
- propTypes: {
- highlighted: React.PropTypes.boolean
- },
- render: function() {
- return (
- <article className={this.props.highlighted ? "highlighted" : "not-highlighted"}/>
- );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement