Skip to content

Commit 1b2d1b7

Browse files
Luciano Barauna [Fattoria]Luciano Barauna [Fattoria]
authored andcommitted
Add cap_02 e finalizado
1 parent c1207ae commit 1b2d1b7

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

cap_02/video_intro_jsx.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>React Hello World</title>
5+
<meta charset="utf-8">
6+
</head>
7+
<body>
8+
<div id="app">
9+
<!-- Nosso aplicativo ir&acute; renderizar aqui -->
10+
</div>
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js"></script>
12+
<script src="https://npmcdn.com/react-dom@15.3.2/dist/react-dom.js"></script>
13+
<script>
14+
var minhaDiv = document.getElementById("app");
15+
ReactDOM.render(
16+
React.DOM.h1({id: "meuTitulo"},
17+
React.DOM.span(null, 'ABC')
18+
),
19+
minhaDiv
20+
);
21+
22+
23+
</script>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)