mirror of
https://github.com/status-im/reagent.git
synced 2025-02-05 16:44:25 +00:00
Update README.md
This commit is contained in:
parent
b4bfb4d504
commit
035ba9cf29
10
README.md
10
README.md
@ -70,11 +70,11 @@ can be written as:
|
|||||||
[:div>p>b "Nested Element"]
|
[:div>p>b "Nested Element"]
|
||||||
```
|
```
|
||||||
|
|
||||||
The `:class` attribute can accept either a collection or a string.
|
> **Since version 0.8:** The `:class` attribute also supports collections of classes, and nil values are removed:
|
||||||
|
>
|
||||||
```clj
|
> ```clj
|
||||||
[:div {:class ["a-class" (when active? "active") "b-class"]}]
|
> [:div {:class ["a-class" (when active? "active") "b-class"]}]
|
||||||
```
|
> ```
|
||||||
|
|
||||||
You can use one component inside another:
|
You can use one component inside another:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user