Skip to content

Files

Latest commit

 

History

History
 
 

react-date-range

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

cljsjs/react-date-range

[cljsjs/react-date-range "1.0.0-beta2-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.react-date-range))

Usage might look something like this:

(js/React.createElement
 js/ReactDateRange.DateRangePicker
 #js{:ranges   #js [#js {:startDate (js/Date.)
                         :endDate   (js/Date.)
                         :key       "selection"}]
     :onChange prn})

You can also use those 2 provided CSS files:

;; Development
cljsjs/react-date-range/development/styles.inc.css
cljsjs/react-date-range/development/theme/default.inc.css

;; Production
cljsjs/react-date-range/production/styles.min.inc.css
cljsjs/react-date-range/production/theme/default.min.inc.css