Last active
July 24, 2018 19:25
-
-
Save jimberlage/2d3f99b2d0c4fb3e4359268ac7fc53b8 to your computer and use it in GitHub Desktop.
Integrating datedropper with reagent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns demo.core | |
(:require [reagent.core :as reagent])) | |
(defn my-date-input [] | |
(let [input-el (atom nil)] | |
(reagent/create-class | |
{:component-did-mount #(.dateDropper (js/$ @input-el)) | |
:reagent-render (fn [] | |
[:input {:ref #(reset! input-el %) :type "text"}])}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment