• Home
  • Search Tags
  • About

clojurescript

Topics related to clojurescript:

Getting started with clojurescript

ClojureScript is a version of Clojure that compiles to javascript code and runs in the browser.

While it is mostly the same as Clojure, there are a few differences (mainly, it lacks some api calls that invoke java functions that are not available in javascript)

Figwheel

Figwheel automatically rebuilds your clojurescript code when source files change and reloads code in browser. Reload works without refreshing page and you can preserve some of app's state between reloads by using defonce.

It is alternative to REPL-based development (although it includes REPL too). Instead of re-evaling changed functions in REPL, it reloads all code, and you can use println to see result of expression evaluation in browser's js console.

lein-cljsbuild

More details on parameters for lein-clsjbuild can be found in their example project.

JavaScript Events

All Closure event names can be found in their documentation on the EventType enum.

Getting Started with Reagent

State Management with re-frame (https://github.com/Day8/re-frame)

Content on the page is taken from Stack Overflow Documentation

This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service