Mixing Client/Server code in one file?

Is anyone doing something similar to GitHub - hyperfiddle/electric: a reactive signals DSL for fullstack web UI, with compiler-managed network sync in ReScript ?

In particular, look at this diagram: electric/electric-explainer-5.png at master · hyperfiddle/electric · GitHub

I’m looking for a way to define a function where parts of it runs client side and parts of it runs server side.

1 Like