diff --git a/demo/reagentdemo/news.cljs b/demo/reagentdemo/news.cljs index 3a78c0d..89c4bc0 100644 --- a/demo/reagentdemo/news.cljs +++ b/demo/reagentdemo/news.cljs @@ -6,12 +6,14 @@ [reagentdemo.news.news050 :as news050] [reagentdemo.news.news051 :as news051] [reagentdemo.news.news060 :as news060] + [reagentdemo.news.news061 :as news061] [reagentdemo.news.news060rc :as news060rc] [reagentdemo.news.news060release :as news060r] [sitetools.core :as tools])) (defn main [] [:div + [news061/main {:summary true}] [news060r/main {:summary true}] [news060rc/main {:summary true}] [news060/main {:summary true}] diff --git a/demo/reagentdemo/news/news061.cljs b/demo/reagentdemo/news/news061.cljs new file mode 100644 index 0000000..499c336 --- /dev/null +++ b/demo/reagentdemo/news/news061.cljs @@ -0,0 +1,30 @@ +(ns reagentdemo.news.news061 + (:require [reagent.core :as r] + [reagent.debug :refer-macros [dbg println]] + [reagentdemo.syntax :as s] + [reagentdemo.common :as common :refer [demo-component]] + [sitetools.core :as tools :refer [link]])) + +(def url "/news/news061.html") +(def title "Reagent 0.6.1") + +(def ns-src (s/syntaxed "(ns example.core + (:require [reagent.core :as r]))")) + +(def changelog + "https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md") + +(defn abstract [] + [:div.demo-text + [:p + "Reagent 0.6.1 has a new version of React (15.4.0), and it fixes a bug with + " [:code ":ref"] " attributes on " [:code "input"] " elements: " [:a {:href "https://github.com/reagent-project/reagent/issues/259"} "#259"] "."]]) + +(defn main [{:keys [summary]}] + [:div.reagent-demo + [:h1 + [link {:href url} title]] + [:div + [abstract]]]) + +(tools/register-page url [#'main] title)