-
Notifications
You must be signed in to change notification settings - Fork 0
/
react.html
46 lines (44 loc) · 1.28 KB
/
react.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
<body>
<div id="app"></div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/6.6.3/rxjs.umd.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.8.4/umd/react.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.4/umd/react-dom.development.js"></script>
<script>
const h= React.createElement;
const Fragment=React.Fragment;
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.js"></script>
<script src="js/mak-from.js"></script>
<script type="text/jsx">
ReactDOM.render(
<React.Fragment>
<dl>{
from("ProductionLine line").map(
data =>
<span>
<dt>{data("line.name")}</dt>
<dd><ul>{from("Task t").where("t.line=line").map(
data =>
<li>
{data("t.customer")}:{data("t.days")}
</li>
)}
</ul>
</dd>
</span>
)
}</dl>
<dl><dt>Park:</dt>
<dd><ul>{from("Task t").where("t.line=nil").map(
data =>
<li>
{data("t.customer")}:{data("t.days")}
</li>
)}
</ul>
</dd>
</dl>
</React.Fragment>
, document.body.querySelector("#app"));
</script>