Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Formの複雑さに立ち向かう
Search
じょうげん
February 14, 2025
Programming
1
3.2k
Formの複雑さに立ち向かう
Conformを使った実装の紹介を交えつつ、Formの複雑さを軽減する手法を提案します。
じょうげん
February 14, 2025
Tweet
Share
More Decks by じょうげん
See All by じょうげん
読みやすいコードとはなにか? 未来の自分とチームへの思いやり
bmthd
0
53
Yamada UIドキュメント v2紹介
bmthd
0
590
TanStack DB ~状態管理の新しい考え方~
bmthd
2
1k
コールバックchildrenでロジックの見通しを改善する
bmthd
0
24
Other Decks in Programming
See All in Programming
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.2k
2年のAppleウォレットパス開発の振り返り
muno92
PRO
0
200
組織で育むオブザーバビリティ
ryota_hnk
0
160
AIエージェントの設計で注意するべきポイント6選
har1101
7
3.4k
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
Basic Architectures
denyspoltorak
0
650
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
AgentCoreとHuman in the Loop
har1101
5
210
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
510
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.4k
Vibe codingでおすすめの言語と開発手法
uyuki234
0
210
高速開発のためのコード整理術
sutetotanuki
1
370
Featured
See All Featured
We Are The Robots
honzajavorek
0
160
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
86
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
53
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
120
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
The Language of Interfaces
destraynor
162
26k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
93
Everyday Curiosity
cassininazir
0
120
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
110
How to Talk to Developers About Accessibility
jct
2
120
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
220
AI: The stuff that nobody shows you
jnunemaker
PRO
2
230
Transcript
Formの複雑さに立ち向かう
自己紹介 HN じょうげん Github bmthd X(Twitter) @j_ktwr スタック TS, Go,
Javaなど
Agenda • Formの悩み • Conformのご紹介 • 実装吸収層で実現するシンプルなform実装
Formの悩み
従来のHTMLにおけるFormといえば…
React Hook Formの場合
None
Conformのご紹介 Conformは、Server Actionsを前提に設計された新世代の フォームライブラリです。
Conformを使うとここまで削れます!
None
実装吸収層で実現する、シンプルなform実装
None
None
None
その他のConformの嬉しみ • Selectコンポーネント、動的入力欄、チェックボックスグループな どの複雑なUIにも対応 • FormData経由で同期的アクセス • リアクティブな状態へのアクセスももちろん可能! • アクセシビリティ属性を自動でセット
• サーバー側検証対応。フロントとバックでスキーマ共有や、バンド ルサイズ圧縮が可能 • Progressive Enhancement • サーバーでしか行えない検証をシームレスに実装可能 • SPAでの利用ももちろん可能
まとめ • Conformは、フォームの複雑さに立ち向かうための新しい選択 肢です。 • 実装がシンプルであり、UIの構築に集中することができます。 • Conformドキュメント • 紹介した実装の動作サンプル
exp.bmth.dev