-
Notifications
You must be signed in to change notification settings - Fork 0
/
owner_ownee.html
55 lines (49 loc) · 1.61 KB
/
owner_ownee.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Owner-Ownee</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js"></script>
</head>
<body>
<div id="content"></div>
<script type="text/babel">
var Avatar = React.createClass({
render: function(){
return (
<div>
<ProfileLink data={this.props.data} />
</div>
);
}
});
var ProfilePicture = React.createClass({
render: function(){
return (
<img src={ "https://graph.facebook.com/" } />
);
}
});
var ProfileLink = React.createClass({
render: function(){
return (
<ol>
{
this.props.data.map(function(country){
return <li key={country}> {country} </li>;
})
}
</ol>
);
}
});
var data = ["Australia", "America", "New Zealand", "Pakistan", "China", "India", "Palestine", "Israel", "South Africa", "England", "Italy", "Lithuinia"];
ReactDOM.render(
<Avatar data={data} />,
document.getElementById("content")
);
</script>