penpot/src/uxbox/ui/navigation.cljs
2016-02-01 20:45:59 +02:00

12 lines
365 B
Clojure

(ns uxbox.ui.navigation
(:require [sablono.core :as html :refer-macros [html]]
[goog.events :as events]
[uxbox.util.dom :as dom]))
(defn link
"Given an href and a component, return a link component that will navigate
to the given URI withour reloading the page."
[href component]
(html
[:a {:href (str "/#" href)} component]))