Skip to content

Commit 4f8f950

Browse files
committed
Merge pull request #2289 from brendannee/patch-1
Updated example in readme to use ReactDOM.render
2 parents 56e2d87 + 532a633 commit 4f8f950

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ If you just want to drop a `<script>` tag in your page and be done with it, you
6969

7070
```js
7171
import React from 'react'
72+
import { render } from 'react-dom'
7273
import { Router, Route, Link } from 'react-router'
7374

7475
const App = React.createClass({/*...*/})
@@ -117,7 +118,7 @@ const User = React.createClass({
117118
// Declarative route configuration (could also load this config lazily
118119
// instead, all you really need is a single root route, you don't need to
119120
// colocate the entire config).
120-
React.render((
121+
render((
121122
<Router>
122123
<Route path="/" component={App}>
123124
<Route path="about" component={About}/>

0 commit comments

Comments
 (0)