Skip to content

Commit

Permalink
fix(doc): edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Apr 18, 2016
1 parent 7c62e73 commit 16a5e74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ ReactDOM.render(
<span>hello</span>
<span>world</span>
</NotesList>,
document.body
document.getElementById('example')
);
```

Expand Down Expand Up @@ -225,7 +225,7 @@ var data = 123;

ReactDOM.render(
<MyTitle title={data} />,
document.body
document.getElementById('example')
);
```

Expand Down Expand Up @@ -254,7 +254,7 @@ var MyTitle = React.createClass({

ReactDOM.render(
<MyTitle />,
document.body
document.getElementById('example')
);
```

Expand Down Expand Up @@ -346,7 +346,7 @@ var Input = React.createClass({
}
});

ReactDOM.render(<Input/>, document.body);
ReactDOM.render(<Input/>, document.getElementById('example'));
```

More information on [official document](http:https://facebook.github.io/react/docs/forms.html).
Expand Down Expand Up @@ -389,7 +389,7 @@ var Hello = React.createClass({

ReactDOM.render(
<Hello name="world"/>,
document.body
document.getElementById('example')
);
```

Expand Down Expand Up @@ -442,7 +442,7 @@ var UserGist = React.createClass({
ReactDOM.render(
<UserGist source="https://api.github.com/users/octocat/gists" />,
document.body
document.getElementById('example')
);
```
Expand All @@ -459,7 +459,7 @@ ReactDOM.render(
<RepoList
promise={$.getJSON('https://api.github.com/search/repositories?q=javascript&sort=stars')}
/>,
document.body
document.getElementById('example')
);
```

Expand Down

0 comments on commit 16a5e74

Please sign in to comment.