-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (58 loc) · 2.15 KB
/
index.html
File metadata and controls
68 lines (58 loc) · 2.15 KB
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
<!DOCTYPE html>
<html lang='en' dir='ltr'>
<head>
<meta charset='utf-8'>
<title>A sample project to demonstrate webcomponents-redux usage</title>
<style>
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
.container {
margin-bottom: 30px;
}
.description {
margin-bottom: 10px;
font-weight: 600;
}
</style>
<!-- react bundles -->
<script src='https://unpkg.com/react/umd/react.production.min.js' crossorigin></script>
<script src='https://unpkg.com/react-dom/umd/react-dom.production.min.js' crossorigin></script>
<!-- babel bundle -->
<script src='https://unpkg.com/babel-standalone/babel.min.js'></script>
<!-- redux, react-redux, webcomponens-redux bundles -->
<script src='https://unpkg.com/redux/dist/redux.min.js'></script>
<script src='https://unpkg.com/react-redux/dist/react-redux.min.js'></script>
<script src='https://unpkg.com/webcomponents-redux/dist/webcomponents-redux.min.js'></script>
<script src='state-setup.js'></script>
<script src='web-components/counter-element-v1.js'></script>
<script src='web-components/counter-element-v2.js'></script>
<script src='react-components/counter-component.js' type='text/babel'></script>
<script src='index.js' type='text/babel'></script>
</head>
<body>
<main>
<section>
<h3>Web Components</h3>
<div class='container'>
<div class='description'>Single class model, where one class has both UI and Redux logic.</div>
<counter-element-v1 value='100'></counter-element-v1>
</div>
<div class='container'>
<div class='description'>Two class model, where Presentation class has the UI logic and Container class has the Redux logic.</div>
<counter-element-v2 value='1'></counter-element-v2>
</div>
</section>
<br />
<section>
<h3>React Component</h3>
<div id='root'></div>
</section>
</main>
</body>
</html>