DEV Community

Discussion on: Server Rendering in JavaScript: Optimizing for Size

Collapse
 
jon49 profile image
Jon Nyman

Oh, sorry, I didn't notice this reply. I didn't get an email for it :-).

In the app I'm working on right now, client state is kept in memory and if I refresh the back end it will destroy the state. I think traditionally they would just put it in the cookie, but you would need to be careful not to make the cookie too big.

If you have a lot of state it might make sense to go ahead and write a front end. But many business apps don't really need that. So, the right tool for the job. Unfortunately most people don't really need a full front end app and it actually harms the user experience. But sometimes you do need that full front end experience and it makes the user experience much nicer. So, I guess it just depends what you are building. But most web apps could work fine as an MPA slightly enhanced.