reagent/demo/reagentdemo/news/news061.cljs

31 lines
946 B
Clojure

(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)