-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodule-3-part-1.html
61 lines (50 loc) · 2.45 KB
/
module-3-part-1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>React and D3 Workshop</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="module-3">
<div class="banner-image-container">
<img class="banner-image" src="images/react-d3.png" alt="React and D3 Banner Title">
</div>
<div class="outer-container">
<h1>React 101 Workshop</h1>
<h2 class="module-title">Module 3: Beyond the Basics</h2>
<article class="module">
<h3>React is Just JavaScript</h3>
<p>
The nice thing about React is there's no DSL you need to learn. It's all
just JavaScript. To be a "React Developer" you just need to be a
"JavaScript Developer". You can manipulate and refactor React code like
you would any other JavaScript code.
</p>
<p>
For example, lets take a look at an example from a prior module. Take
note that the "Dogs" and "Cats" components are very similar:
</p>
<div class="codepen-container">
<p data-height="1000" data-theme-id="dark" data-slug-hash="oLBOaM" data-default-tab="js" data-user="freddyrangel" data-embed-version="2" data-editable="true" class="codepen">See the Pen <a href="http://codepen.io/freddyrangel/pen/oLBOaM/">State vs Props</a> by Freddy Rangel (<a href="http://codepen.io/freddyrangel">@freddyrangel</a>) on <a href="http://codepen.io">CodePen</a>.</p>
</div>
<p>
This example is not very DRY. We can fix that with some refactoring.
</p>
<div class="codepen-container">
<p data-height="800" data-theme-id="dark" data-slug-hash="OXWGYL" data-default-tab="js" data-user="freddyrangel" data-embed-version="2" data-editable="true" class="codepen">See the Pen <a href="http://codepen.io/freddyrangel/pen/OXWGYL/">React is Just JavaScript</a> by Freddy Rangel (<a href="http://codepen.io/freddyrangel">@freddyrangel</a>) on <a href="http://codepen.io">CodePen</a>.</p>
</div>
</article>
<article class="navigation">
<h2>Learn About Function React</h2>
<div class="nav-buttons">
<a href="/react-and-d3-workshop/module-3-part-2.html" class="btn">Next</a>
<a href="/react-and-d3-workshop/module-2-part-6.html" class="btn">Back</a>
</div>
</article>
</div>
</div>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
</body>
</html>