Browse Source

Correct highlight in tutorial7.js snippet

main
adraeth 9 years ago
parent
commit
493560112a
  1. 2
      docs/tutorial.md

2
docs/tutorial.md

@ -248,7 +248,7 @@ But there's a problem! Our rendered comments look like this in the browser: "`<p
That's React protecting you from an [XSS attack](https://en.wikipedia.org/wiki/Cross-site_scripting). There's a way to get around it but the framework warns you not to use it: That's React protecting you from an [XSS attack](https://en.wikipedia.org/wiki/Cross-site_scripting). There's a way to get around it but the framework warns you not to use it:
```javascript{4,14} ```javascript{3-6,14}
// tutorial7.js // tutorial7.js
var Comment = React.createClass({ var Comment = React.createClass({
rawMarkup: function() { rawMarkup: function() {

Loading…
Cancel
Save