Browse Source

docs classSet semicolons missing

main
Cheng Lou 11 years ago
parent
commit
aee4f20c00
  1. 6
      docs/09.3-class-name-manipulation.md

6
docs/09.3-class-name-manipulation.md

@ -22,7 +22,7 @@ render: function() {
classString += ' message-read'; classString += ' message-read';
} }
// 'message message-important message-read' // 'message message-important message-read'
return <div className={classString}>Great, I'll be there.</div> return <div className={classString}>Great, I'll be there.</div>;
} }
``` ```
@ -35,9 +35,9 @@ render: function() {
'message': true, 'message': true,
'message-important': this.props.isImportant, 'message-important': this.props.isImportant,
'message-read': this.props.isRead 'message-read': this.props.isRead
}) });
// same final string, but much cleaner // same final string, but much cleaner
return <div className={classes}>Great, I'll be there.</div> return <div className={classes}>Great, I'll be there.</div>;
} }
``` ```

Loading…
Cancel
Save