    [:pre (with-out-str (fedn/pprint @match))]])
 
 (def routes
-  (rf/router
-    ["/"
-     [""
-      {:name ::frontpage
-       :view home-page}]
-     ["about"
-      {:name ::about
-       :view about-page}]
-     ["item/:id"
-      {:name ::item
-       :view item-page
-       :parameters {:path {:id s/Int}
-                    :query {(s/optional-key :foo) s/Keyword}}}]]
-    {:data {:coercion rsc/coercion}}))
+  [["/"
+    {:name ::frontpage
+     :view home-page}]
+
+   ["/about"
+    {:name ::about
+     :view about-page}]
+
+   ["/item/:id"
+    {:name ::item
+     :view item-page
+     :parameters {:path {:id s/Int}
+                  :query {(s/optional-key :foo) s/Keyword}}}]])
 
 (defn init! []
-  (rfe/start! routes
-              (fn [m] (reset! match m))
-              {:use-fragment true})
+  (rfe/start!
+    (rf/router routes {:data {:coercion rsc/coercion}})
+    (fn [m] (reset! match m))
+    ;; set to false to enable HistoryAPI
+    {:use-fragment true})
   (r/render [current-page] (.getElementById js/document "app")))
 
 (init!)

   [:button
    {:type "button"
     :on-click #(rfe/replace-state ::item {:id 4})}
    "Replace State Item 4"] ])

(defn about-page []
  [:div

(ns frontend.core
  (:require [reagent.core :as r]
            [reitit.frontend :as rf]
            [reitit.frontend.easy :as rfe]
            [reitit.coercion :as rc]
            [reitit.coercion.schema :as rsc]
            [schema.core :as s]
            [fipp.edn :as fedn]))

(defn home-page []
  [:div
