Update README.md

This commit is contained in:
Juho Teperi 2018-01-08 18:36:18 +02:00 committed by GitHub
parent b4bfb4d504
commit 035ba9cf29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: