One of the additional goals I have is to be able to write type safe APIs between frontend and backend similar to trpc (elysia framework).
One of the additional goals I have is to be able to write type safe APIs between frontend and backend similar to trpc (elysia framework).
In my experience writing large applications in JavaScript the front end (in the browser) and the back end are less different than people typically consider. It could be that many people struggle with the DOM, but anyways it’s all APIs and event handling.
> It could be that many people struggle with the DOM, but anyways it’s all APIs and event handling.
Without a framework, how do you usually like to handle cross-component/cross-screen state in the frontend? Like where do you keep track of logged-in state, dark mode, the shopping cart, etc? Do you just like to put that in the backend, or is there a neat way to organize such data in vanilla JS in the frontend?
Well typed, I'd imagine the dev ex would be similar to a monolithic React context. Seems like it'd work.