From 035ba9cf29bc89477603d0fa64a1108453221b03 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Mon, 8 Jan 2018 18:36:18 +0200 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 748905f..aca7257 100644 --- a/README.md +++ b/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: