From 394d23f84887b3235c35a7456461e929e2072e05 Mon Sep 17 00:00:00 2001 From: petehunt Date: Sat, 1 Jun 2013 13:01:52 -0700 Subject: [PATCH] ReactDOM->React.DOM --- docs/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 1311803d..a8ba17c0 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -89,7 +89,7 @@ The first thing you'll notice is the XML-ish syntax in your JavaScript. We have var CommentBox = React.createClass({ render: function() { return ( - ReactDOM.div({ + React.DOM.div({ className: 'commentBox', children: 'Hello, world! I am a CommentBox.' }) @@ -158,7 +158,7 @@ var CommentBox = React.createClass({ }); ``` -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. +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. ## Component Properties