@@ -95,7 +95,7 @@ var MyComponent = React.createClass({
95
95
96
96
var model = new Backbone.Model ({foo: ' bar' });
97
97
98
- React .render (< MyComponent model= {model} / > , document .body );
98
+ ReactDOM .render (< MyComponent model= {model} / > , document .body );
99
99
// Update the UI
100
100
model .set (' foo' , ' Hello world!' );
101
101
```
@@ -117,7 +117,7 @@ var collection = new Backbone.Collection([
117
117
{id: 1 , helloWorld: ' Hello world!' }
118
118
]);
119
119
120
- React .render (< MyComponent collection= {collection} / > , document .body );
120
+ ReactDOM .render (< MyComponent collection= {collection} / > , document .body );
121
121
```
122
122
123
123
#### Multiple models and collections
@@ -151,7 +151,7 @@ var newComponent = MyFactory({
151
151
secondCollection: new Backbone.Collection ([{helloWorld: ' Hello world!' }])
152
152
}
153
153
});
154
- React .render (newComponent, document .body );
154
+ ReactDOM .render (newComponent, document .body );
155
155
```
156
156
157
157
### Usage on the server (Node.js)
@@ -172,11 +172,11 @@ var HelloWorld = React.createClass({
172
172
var HelloWorldFactory = React .createFactory (HelloWorld);
173
173
174
174
// Render to an HTML string
175
- React .renderToString (HelloWorldFactory ({model: model}));
175
+ ReactDOM .renderToString (HelloWorldFactory ({model: model}));
176
176
// Updating the model
177
177
model .set (' helloWorld' , ' Hi again!' );
178
178
// Rendering to an HTML string again
179
- React .renderToString (HelloWorldFactory ({model: model}));
179
+ ReactDOM .renderToString (HelloWorldFactory ({model: model}));
180
180
```
181
181
182
182
### API
0 commit comments