Skip to content

Commit ed984b9

Browse files
committed
Merge branch '2.10.0' of https://github.com/Active-CSS/active-css into 2.10.0
2 parents 3b05f8d + 8733fdb commit ed984b9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Boldly go where no CSS author has gone before...
99

1010
Here's a taster:
11-
1211
```
1312
#clickMe:click {
1413
body {
@@ -17,6 +16,22 @@ Here's a taster:
1716
}
1817
```
1918

19+
Example of a component (because you love components):
20+
```
21+
button:click {
22+
render-after-end: "<hello-world></hello-world>";
23+
}
24+
25+
@component hello-world private {
26+
html {
27+
<p>Hello world</p>
28+
}
29+
p:click {
30+
alert: "Why are you clicking me, you crazy!";
31+
}
32+
}
33+
```
34+
2035
Ultra-fast. No pre-processing. No virtual DOM. Runs in real-time in the browser.<br>
2136
All DOM events are supported, plus CSS commands up to level 4 (if browser supported).<br>
2237
Works on chromium browsers (Chrome, Edge, Opera, etc.) and Firefox. (ES6+)

0 commit comments

Comments
 (0)