Skip to content

Commit 69393f2

Browse files
committed
Refactor example
1 parent 798282c commit 69393f2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

readme.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@ npm install hastscript
1313

1414
## Usage
1515

16-
Dependencies:
17-
1816
```javascript
1917
var h = require('hastscript');
20-
```
2118

22-
AST:
23-
24-
```javascript
2519
var tree = h('.foo#some-id', [
2620
h('span', 'some text'),
2721
h('input', {
@@ -78,7 +72,7 @@ DSL for creating virtual [HAST][] trees.
7872

7973
###### Returns
8074

81-
[`Node`][hast-node] — A HAST node.
75+
[`Element`][element].
8276

8377
## License
8478

@@ -102,7 +96,7 @@ DSL for creating virtual [HAST][] trees.
10296

10397
[hast]: https://github.com/wooorm/hast
10498

105-
[hast-node]: https://github.com/wooorm/hast#node
99+
[element]: https://github.com/wooorm/hast#element
106100

107101
[virtual-hyperscript]: https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript
108102

0 commit comments

Comments
 (0)