mirror of
https://github.com/status-im/reagent.git
synced 2025-01-13 05:14:45 +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"]
|
||||
```
|
||||
|
||||
The `:class` attribute can accept either a collection or a string.
|
||||
|
||||
```clj
|
||||
[:div {:class ["a-class" (when active? "active") "b-class"]}]
|
||||
```
|
||||
> **Since version 0.8:** The `:class` attribute also supports collections of classes, and nil values are removed:
|
||||
>
|
||||
> ```clj
|
||||
> [:div {:class ["a-class" (when active? "active") "b-class"]}]
|
||||
> ```
|
||||
|
||||
You can use one component inside another:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user