项目作者: DavidVujic

项目描述 :
ClojureScript: simple within parenthesis
高级语言: Clojure
项目地址: git://github.com/DavidVujic/cljs-hello-world.git
创建时间: 2021-01-16T11:16:44Z
项目社区:https://github.com/DavidVujic/cljs-hello-world

开源协议:

下载


ClojureScript: simple within parenthesis

Example code using:

  • ClojureScript
  • Shadow-cljs
  • Reagent
  • re-frame
  • a third party React library (react-tooltip)
  • a third party JavaScript library (date-fns)

Here is a clickable example web page based on the source code of this repo.

References

Have a look at this Blog post
for an introduction to Clojure, ClojureScript, Reagent and re-frame.

Slides
in :sweden: used in the 2021-01-20 FreeCode MeetUp Series
and the presentation in :sweden: on Youtube

Looking for code and examples from FuncProg Second MeetUp 2021?
It’s in this feature branch

Development

Starting the app:

  1. npx shadow-cljs watch app tests

You can now browse:

Emacs

Or, if you are using Emacs, run the command cider-jack-in-cljs from the editor.
To make the app startup process even smoother, create a .dir-locals.el file in the root folder, add this to it:

  1. ((nil . ((cider-default-cljs-repl . shadow)
  2. (cider-shadow-default-options . ":app")
  3. (cider-shadow-watched-builds . (":app" ":tests")))))
The CSS

The theme switching css comes from this blog post.