made with esnextbin
Last active
January 19, 2017 04:56
-
-
Save TylorS/796c11ce8e15e1eda30f02920a5d955a to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<!-- put markup and other contents here --> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h, querySelector, querySelectorAll } from 'mostly-dom'; | |
const vNode = | |
h('div.root', [ | |
h('h1.heading', [ 'Hello World' ]), | |
h('div.content', [ | |
h('ul.list', [ | |
h('li.item', 'item0'), | |
h('li.item', 'item1'), | |
h('li.item', 'item2'), | |
h('li.item', 'item3'), | |
h('li.item', 'item4'), | |
h('li.item', 'item5'), | |
h('li.item', 'item6'), | |
h('li.item', 'item7'), | |
h('li.item', 'item8'), | |
h('li.item', 'item9') | |
]) | |
]) | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"mostly-dom": "1.2.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _mostlyDom = require('mostly-dom'); | |
var vNode = (0, _mostlyDom.h)('div.root', [(0, _mostlyDom.h)('h1.heading', ['Hello World']), (0, _mostlyDom.h)('div.content', [(0, _mostlyDom.h)('ul.list', [(0, _mostlyDom.h)('li.item', 'item0'), (0, _mostlyDom.h)('li.item', 'item1'), (0, _mostlyDom.h)('li.item', 'item2'), (0, _mostlyDom.h)('li.item', 'item3'), (0, _mostlyDom.h)('li.item', 'item4'), (0, _mostlyDom.h)('li.item', 'item5'), (0, _mostlyDom.h)('li.item', 'item6'), (0, _mostlyDom.h)('li.item', 'item7'), (0, _mostlyDom.h)('li.item', 'item8'), (0, _mostlyDom.h)('li.item', 'item9')])])]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment