 
 (defmethod compile-element ::all-literal
   [element]
-  (render-element (eval element)))
+  (compile-react-element (eval element)))
 
 (defmethod compile-element ::literal-tag-and-attributes
   [[tag attrs & content]]

           (assoc attrs :className)
           (to-js)))))

(defn render-element
  "Render an element vector as a HTML element."
  [element]
  (let [[tag attrs content] (normalize-element element)]
    (if content
      `(~(react-symbol tag) ~(compile-attrs attrs) ~@(render-html content))
      `(~(react-symbol tag) ~(compile-attrs attrs)))))

(defn- unevaluated?

            [sablono.util :refer [normalize-element react-symbol]])
  (:import cljs.tagged_literals.JSValue))

(defprotocol ICompile
  (compile-react [this] "Compile a Clojure data structure into a React fn call."))

(defprotocol IJSValue
  (to-js [x]))
