diff --git a/README.md b/README.md index 77780ec6..04ac7067 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Then play with the source files under the repo's demo* directories.
+ @@ -57,16 +58,16 @@ Then play with the source files under the repo's demo* directories. ## Demo01: Render JSX ([source](https://github.com/ruanyf/react-demos/blob/master/demo01/index.html)) -The template syntax in React is called [JSX](http://facebook.github.io/react/docs/displaying-data.html#jsx-syntax). It is allowed in JSX to put HTML tags directly into JavaScript codes. `React.render()` is the method which translates JSX into HTML, and renders it into the specified DOM node. +The template syntax in React is called [JSX](http://facebook.github.io/react/docs/displaying-data.html#jsx-syntax). It is allowed in JSX to put HTML tags directly into JavaScript codes. `ReactDOM.render()` is the method which translates JSX into HTML, and renders it into the specified DOM node. ```js -React.render( +ReactDOM.render(