clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
Oliver George 2020-09-05T05:46:16.263Z

I'm feeling my way forward for how to incorporate storybook.js into our react/reagent single page webapp workflow. Putting my first attempt here in the hope others with experience might comment with any tips/insights for getting it right: https://github.com/olivergeorge/caniusestories

misha 2020-09-05T17:15:12.265400Z

Counting lines in clojurescript:

(str/split-lines "\n\n\n\n")
=> []

(str/split "\n\n\n\n" #"\n")
=> []

(count (re-seq #"\n" "\n\n\n\n"))
=> 4

;js
"\n\n\n\n".split(/\n/).length
5