rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
javahippie 2020-09-28T09:48:27.007200Z

Hi 👋 Do you know of any resources that show how to combine backend- and frontend-rendering in rum, especially with focus on the workflow? I would like to render as much as possible on the serverside and enhance with reactive components in the frontend

👍 1
sova-soars-the-sora 2020-10-10T23:48:04.009100Z

The main idea is to define all your components in one .cljc file Then you include the .cljc file as a dependency on both client (cljs) and server (clj) In this way, you only define components once.

👍 1
sova-soars-the-sora 2020-10-10T23:49:01.009300Z

And you can use "reader conditionals" to make the .cljc file have relevant code for just js mode or server mode.

javahippie 2020-10-12T07:11:16.009600Z

Thanks!

😁 1
javahippie 2020-09-28T11:25:19.008300Z

I have some ideas on how to make it work, but thought maybe reading some other thoughts on this could be helping