Skip to content

Commit 87cced7

Browse files
committed
Merge branch 'master' of github.com:ruanyf/react-demos
2 parents 8b136b9 + 15a5be3 commit 87cced7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ Put the compiled JS files into HTML.
565565
- [React (Virtual) DOM Terminology](http://facebook.github.io/react/docs/glossary.html), by Sebastian Markbåge
566566
- [The React Quick Start Guide](http://www.jackcallister.com/2015/01/05/the-react-quick-start-guide.html), by Jack Callister
567567
- [Learning React.js: Getting Started and Concepts](https://scotch.io/tutorials/learning-react-getting-started-and-concepts), by Ken Wheeler
568-
- [Getting started with React](http://ryanclark.me/getting-started-with-react/), by Ryan Clark
568+
- [Getting started with React](http://ryanclark.me/getting-started-with-react), by Ryan Clark
569569
- [React JS Tutorial and Guide to the Gotchas](https://zapier.com/engineering/react-js-tutorial-guide-gotchas/), by Justin Deal
570570
- [React Primer](https://github.com/BinaryMuse/react-primer), by Binary Muse
571571
- [jQuery versus React.js thinking](http://blog.zigomir.com/react.js/jquery/2015/01/11/jquery-versus-react-thinking.html), by zigomir

demo02/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
ReactDOM.render(
1414
<div>
1515
{
16-
names.map(function (name) {
17-
return <div>Hello, {name}!</div>
16+
names.map(function (name, index) {
17+
return <div key={index}>Hello, {name}!</div>
1818
})
1919
}
2020
</div>,

demo03/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<div id="example"></div>
1010
<script type="text/babel">
1111
var arr = [
12-
<h1>Hello world!</h1>,
13-
<h2>React is awesome</h2>,
12+
<h1 key="1">Hello world!</h1>,
13+
<h2 key="2">React is awesome</h2>,
1414
];
1515
ReactDOM.render(
1616
<div>{arr}</div>,

0 commit comments

Comments
 (0)