rum 2020-09-28

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.

Thanks!

😁 1

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