diff --git a/README.md b/README.md index f0d6b38..26db862 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,20 @@ Reagent uses [Hiccup-like](https://github.com/weavejester/hiccup) markup instead " text."]]) ``` +Reagent extends standard Hiccup in one way: it is possible to "squeeze" elements together by using a `>` character. + +```clj +[:div + [:p + [:b "Nested Element"]]] +``` + +can be written as: + +```clj +[:div>p>b "Nested Element"] +``` + You can use one component inside another: ```clj