If you want to be able to call server functions from the client, RPC is often the move.

The Bun + Better Call combo gets you a fullstack solution in very little code. Server, Client, bundling and HMR 👌

had to record a little video showing the setup

28113
184594.5K