Remix.run Logo
8n4vidtmkvmk 2 days ago

If your app is simple enough, go ahead and do that. In nearly every app I've worked on, I eventually need some dynamic piece of content. Like even a date picker, so you really want to call the server every time the use wants to go to the next month?

wild_egg 2 days ago | parent [-]

Why on earth would you drive a date picker from the server? No one is saying to do that. JS is absolutely fine to build custom UI controls. The form the date picker renders in doesn't need to be 100% JS though.

Use JS to patch over things the browser doesn't implement and let it handle the rest.

8n4vidtmkvmk a day ago | parent [-]

Ok, at least we agree on something. I think that's fine if your app is simple enough, but the more and more dynamic it gets, at a certain point, I think it makes sense to just render the whole darn thing in JS. At least for the DX.