Skip to content

Instantly share code, notes, and snippets.

@aibrahim
Created September 2, 2018 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aibrahim/1c2e210884c81817f4bcac3e1142f706 to your computer and use it in GitHub Desktop.
Save aibrahim/1c2e210884c81817f4bcac3e1142f706 to your computer and use it in GitHub Desktop.
(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