フォーム・入力
Server Actions + useActionState によるサーバー側検証つき送信
検証は actions.ts のサーバー側で行われます。JavaScriptを無効にしても動作します。
actions.ts