|
|
|
|
|
by galaxyLogic
2305 days ago
|
|
> Think of a client app as a loop reacting to user /network events and turning state into html. Then who, which part of the code, inserts that HTML into the DOM? Is that done by user-code or some library (when using Clojure)? |
|
It uses a the same data format as hiccup template library which can be used on server side - https://github.com/weavejester/hiccup
That's why the same code can be used on client and server. The simplicity of the process (uses pure functions to turn immutable data structures to html) means that it can be also easily unit tested.