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
React 18からのAPI useIDを使おう!/ Let's Use the useID ...
Search
yamanoku
May 16, 2025
Technology
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
React 18からのAPI useIDを使おう!/ Let's Use the useID API from React 18
React Tokyo LT大会
発表資料
yamanoku
May 16, 2025
More Decks by yamanoku
See All by yamanoku
SvelteのHTMLはどう解釈されているのか / How Svelte compile HTML
yamanoku
1
240
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
220
Shifting from MCP to Skills / ベストプラクティスの変遷を辿る
yamanoku
5
1.1k
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
4
8.9k
たかがボタン、されどボタン ~button要素から深ぼるボタンUIの定義について~ / BuriKaigi 2026
yamanoku
1
540
ひとりNavigation API Advent Calendarの紹介 / Mita.ts #9
yamanoku
1
210
DenoとJSRで実現する最速MCPサーバー開発記 / Building MCP Servers at Lightning Speed with Deno and JSR
yamanoku
2
710
転生したらTypeScriptのEnumだった件 ~型安全性とエコシステムの変化で挫けそうになっているんだが~ / TSKaigi 2025
yamanoku
0
84
リアクティブシステムの変遷から理解するalien-signals / Learning alien-signals from the evolution of reactive systems
yamanoku
3
2.1k
Other Decks in Technology
See All in Technology
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」紹介資料
laysakura
2
9k
制約理論(ToC)入門 2026版
recruitengineers
PRO
8
2.2k
ボトムアップ文化が強い組織で セキュリティをどう根付かせていくかの現在進行形の話 / Making Security Stick in a Bottom-Up Organization
yamaguchitk333
0
220
DatadogのBits Chatが開発組織にもたらしたもの / What Bits Chat Has Brought Us
sms_tech
1
260
認知負荷をGemini で溶かす — GKE 基盤「Orbit」における AI エージェントの実践
sansantech
PRO
1
290
【CEDEC2026】グラフィックスエンジニアのためのニューラルシェーディング入門
cygames
PRO
0
140
【CEDEC2026】『Relink』を拡張せよ - 『GRANBLUE FANTASY: Relink - Endless Ragnarok』の開発速度と品質を守るCI運用
cygames
PRO
0
150
PLATEAU で バーチャル花火大会
tatsuya1970
0
150
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
つくって納得、つかって実感! 大規模言語モデルことはじめ ver2.0
recruitengineers
PRO
4
1.6k
猫付きpingコマンドを自作
uyuki234
0
220
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
Featured
See All Featured
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
The Curse of the Amulet
leimatthew05
2
14k
RailsConf 2023
tenderlove
30
1.5k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
240
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
エンジニアに許された特別な時間の終わり
watany
108
250k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
How to Think Like a Performance Engineer
csswizardry
28
2.7k
Git: the NoSQL Database
bkeepers
PRO
432
67k
How to make the Groovebox
asonas
2
2.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
Transcript
ハードコード不要 !! ID 衝突なし !! SSR 対応 !! 接頭辞の変更可 !!
注意点 ` リスト内keyでuseIdを使わなY ` SSR時は同一ツリーで呼び出す React 18からのAPI useId() を使おう!! 他ライブラリでも採用 useId() の詳細は を参照 https://ja.react.dev/reference/react/useId React 19.1からID属性値の出力結果が :xxxx: から «xxxx» へ変更された View Transition APIやCSS Anchor Positionで使用時の不具合を解消 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import from function const return label input label p p { useId } ; () { passwordHintId (); ( <> < > パスワード < type="password" aria-describedby={passwordHintId} /> </ > < id={passwordHintId}> パスワードは18文字以上の入力が必要です </ > </> ); }; 'react' PasswordField useId =