Fork me on GitHub
#clojurescript
<
2020-09-05
>
Oliver George05:09:16

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

misha17:09:12

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