arche 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/nodejs.yml +1 -1
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|

|
|
3
3
|
> Arche (/ˈɑːrki/; Ancient Greek: ἀρχή) is a Greek word with primary senses "beginning", "origin" or "source of action" (ἐξ' ἀρχῆς: from the beginning, οr ἐξ' ἀρχῆς λόγος: the original argument), and later "first principle" or "element". ([wikipedia](https://en.wikipedia.org/wiki/Arche))
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
[](https://codecov.io/gh/richytong/arche)
|
|
7
7
|
|
|
8
|
-
HTML as JavaScript.
|
|
8
|
+
HTML as JavaScript.
|
|
9
9
|
|
|
10
10
|
```javascript [playground]
|
|
11
11
|
const ReactElement = Arche(React)
|
|
@@ -17,14 +17,14 @@ const { Div, H1, P } = ReactElement
|
|
|
17
17
|
|
|
18
18
|
const myElement = Div([
|
|
19
19
|
H1('I am a heading'),
|
|
20
|
-
P('
|
|
20
|
+
P('paragraph'),
|
|
21
21
|
P('lorem ipsum'),
|
|
22
22
|
])
|
|
23
23
|
|
|
24
24
|
render(myElement)
|
|
25
25
|
// <div>
|
|
26
26
|
// <h1>I am a heading</h1>
|
|
27
|
-
// <p>
|
|
27
|
+
// <p>paragraph</p>
|
|
28
28
|
// <p>lorem ipsum</p>
|
|
29
29
|
// </div>
|
|
30
30
|
```
|