Skip to content

Files

Latest commit

 

History

History
 
 

inferno

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

cljsjs/inferno

[cljsjs/inferno "5.6.0-0"] ;; latest release

This jar comes with deps.cljs as used by the Foreign Libs feature of the ClojureScript compiler. After adding the above dependency to your project you can require the packaged library like so:

(ns application.core
  (:require [cljsjs.inferno]))

(defn init []
  (let [container (. js/document (getElementById "container"))
        v-node (.createVNode  js/Inferno 2 "div" #js {} "Inferno is working")]
    (.render js/Inferno v-node container)))

Several optional Inferno modules can also be required in your project as follows

(ns application.core
  (:require [cljsjs.inferno.create-element]
            [cljsjs.inferno.create-class]
            [cljsjs.inferno.hyperscript]))

Consult Inferno's documentation for more information about these modules.