-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpadrao.html
82 lines (68 loc) · 1.53 KB
/
padrao.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Modelo Padrão</title>
</head>
<link href="css/estilo.css" rel="stylesheet" type="text/css"/>
<body>
<h1>ENTI - Aprendendo React #2</h1>
<div id="conteudo"></div>
</body>
<!--React v15.6.1 -->
<script src="js/vendors/react.js"></script>
<script src="js/vendors/react-dom.js"></script>
<script src="js/vendors/babel-core-5.8.38.js"></script>
<script type="text/babel">
/*
let MyNotification = React.createClass({
render: function(){
return (
<h1>Teste</h1>
)
}
})
*/
class MyNotification extends React.Component{
render() {
return (
<h1>Teste</h1>
)
}
}
let destino = document.querySelector("#conteudo")
ReactDOM.render(
<div>
<MyNotification />
</div>,destino
)
/*
Exemplo do livro React: Up & Running by Stonyan Stefanov
//https://www.safaribooksonline.com/library/view/react-up/9781491931813/ch04.html#idm140144569524704
*/
/*
let destino = document.querySelector("#conteudo")
ReactDOM.render(
React.DOM.h1(
{id: "my-heading"},
React.DOM.span(null,
React.DOM.em(null, "Hell"),
"o"
), " World!"
),
destino
)
ReactDOM.render(
React.DOM.h1(
{
style:{
background: "white"
}
}, "Hello World!"
),destino
)
*/
</script>
</html>