Skip to content

Instantly share code, notes, and snippets.

@veer66
Created May 30, 2016 16:09
Show Gist options
  • Save veer66/aaf170945c71908a4727e4d36acd1abf to your computer and use it in GitHub Desktop.
Save veer66/aaf170945c71908a4727e4d36acd1abf to your computer and use it in GitHub Desktop.
This is my first client-side code in ClojureScript apart from Hello World.
(ns toto.core)
(let [button (.getElementById js/document "button")
input (.getElementById js/document "input")]
(.addEventListener button "click"
(fn [event]
(.log js/console (nth input/files 0)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment