@samitouri / QOS-React-2 / commits / 095fccb974
Fork 0

The library for web and native user interfaces.

ReactDOM->React.DOM

petehunt committed Jun 1, 2013 at 13:01 UTC 095fccb9746ba3b955636505f4195dc6aefa3a42
1 file changed +2 -2
docs/docs/tutorial.md
+2 -2
@@ -89,7 +89,7 @@ The first thing you'll notice is the XML-ish syntax in your JavaScript. We have
89 var CommentBox = React.createClass({
90 render: function() {
91 return (
92 - ReactDOM.div({
92 + React.DOM.div({
93 className: 'commentBox',
94 children: 'Hello, world! I am a CommentBox.'
95 })
@@ -158,7 +158,7 @@ var CommentBox = React.createClass({
158 });
159 ```
160
161 -Notice how we're mixing HTML tags and components we've built. HTML components are regular React components, just like the ones you define, with one difference. The JSX compiler will automatically rewrite HTML tags to "ReactDOM.tagName" expressions and leave everything else alone. This is to prevent the pollution of the global namespace.
161 +Notice how we're mixing HTML tags and components we've built. HTML components are regular React components, just like the ones you define, with one difference. The JSX compiler will automatically rewrite HTML tags to "React.DOM.tagName" expressions and leave everything else alone. This is to prevent the pollution of the global namespace.
162
163 ## Component Properties
164