Skip to content

Commit 460a4dc

Browse files
committed
update ExampleRedditAPI.md to React 0.14
1 parent c0f366d commit 460a4dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/advanced/ExampleRedditAPI.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ This is the complete source code of the Reddit headline fetching example we buil
1010
import 'babel-core/polyfill';
1111

1212
import React from 'react';
13+
import { render } from 'react-dom';
1314
import Root from './containers/Root';
1415

15-
React.render(
16+
render(
1617
<Root />,
1718
document.getElementById('root')
1819
);
@@ -195,7 +196,7 @@ export default class Root extends Component {
195196
render() {
196197
return (
197198
<Provider store={store}>
198-
{() => <AsyncApp />}
199+
<AsyncApp />
199200
</Provider>
200201
);
201202
}

0 commit comments

Comments
 (0)