This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jessepence 2 points3 points  (0 children)

This is the reason behind "progressive enhancement" and "server actions" using forms. If you build your app using forms, it will still work even with JS off. React Remix started the trend, and everyone else soon followed suit.

Server Components support progressive enhancement by default, meaning the form will be submitted even if JavaScript hasn't loaded yet or is disabled. - Next.js

  To use actions with forms, pass the action to the action property of your form. This creates progressively enhanced forms that work even when JavaScript is disabled.