Skip to content

Commit 3ab4729

Browse files
committed
Refactor wording
1 parent 711f5e5 commit 3ab4729

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
* @param {Source} source
3737
* Info about source.
3838
* @param {undefined} self
39-
* Nothing.
40-
*
41-
* This is used by frameworks that have components (functions, classes).
42-
* Those are not present in hast.
39+
* Nothing (this is used by frameworks that have components, we don’t).
4340
* @returns {JSX.Element}
4441
* An element from your framework.
4542
*

readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ Create a development element (TypeScript type).
214214
* `source` ([`Source`][source])
215215
— info about source
216216
* `self` (`undefined`)
217-
— nothing (this is used by frameworks that have components, those are not
218-
present in hast)
217+
— nothing (this is used by frameworks that have components, we don’t)
219218
220219
###### Returns
221220

0 commit comments

Comments
 (0)