UNPKG
mercury
Version:
latest (14.2.0)
14.2.0
14.1.0
14.0.0
13.0.0
12.0.0
11.1.0
11.0.0
10.1.0
10.0.1
10.0.0
9.1.0
8.0.0
7.0.0
6.1.1
6.1.0
6.0.2
6.0.1
6.0.0
5.2.1
5.2.0
5.1.0
5.0.2
5.0.1
4.3.0
4.2.0
4.1.0
4.0.0
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.0.3
1.0.2
1.0.1
1.0.0
0.1.0
A truly modular frontend framework
github.com/Raynos/mercury
Raynos/mercury
mercury
/
examples
/
2048
/
render.js
16 lines
(12 loc)
•
317 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
;
var
h =
require
(
'../../index.js'
).
h
;
module
.
exports
= render;
function
render
(
state
) {
return
h
(
'.2048-wrapper'
, [
h
(
'link'
, {
rel
:
'stylesheet'
,
href
:
'https://rawgithub.com/raynos/mercury/'
+
'master/examples/2048/style.css'
}) ]); }