Fork me on GitHub
#rum
<
2020-09-28
>
javahippie09:09:27

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

👍 3
javahippie11:09:19

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

sova-soars-the-sora23:10:04

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.

👍 3
sova-soars-the-sora23:10:01

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

javahippie07:10:16

Thanks!

😁 3