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
250
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
230
Shifting from MCP to Skills / ベストプラクティスの変遷を辿る
yamanoku
5
1.1k
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
4
8.9k
たかがボタン、されどボタン ~button要素から深ぼるボタンUIの定義について~ / BuriKaigi 2026
yamanoku
1
550
ひとりNavigation API Advent Calendarの紹介 / Mita.ts #9
yamanoku
1
220
DenoとJSRで実現する最速MCPサーバー開発記 / Building MCP Servers at Lightning Speed with Deno and JSR
yamanoku
2
720
転生したらTypeScriptのEnumだった件 ~型安全性とエコシステムの変化で挫けそうになっているんだが~ / TSKaigi 2025
yamanoku
0
86
リアクティブシステムの変遷から理解するalien-signals / Learning alien-signals from the evolution of reactive systems
yamanoku
3
2.2k
Other Decks in Technology
See All in Technology
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
4
25k
APIセキュリティを組織で実現するには~注力する点と設計・実装に入れたい対策~
riiimparm
2
830
Claude Teamプランの コスト最適化を考える
rfdnxbro
2
850
AWSとAzureのマルチクラウド活用における強い味方___AWS_Kiroを使った二刀流スキル作成.pdf
duelist2020jp
1
160
Oracle AI Databaseデータベース・サービス: BaseDB/ExaDB-Dの可用性
oracle4engineer
PRO
1
1k
Bet AI Day 2026丨AIによって本質に戻るシステムリスク管理
layerx
PRO
0
190
Nav2、Nav3 ... はたまた自作?〜 作って理解する Nav3 の設計意図 〜 / Nav2, Nav3 ... or Build Your Own? — Understanding Nav3's design intent by building it from scratch
yanzm
0
100
Genie Code ワークショップ 応用編 / Genie-Code-Workshop-advanced
databricksjapan
PRO
0
200
Hub & Spoke 環境のネットワークルーティングを分解してみる
tsuyataku
1
480
会計事務所と顧問先の契約関係をOIDC・OAuthで表現する
terara
0
560
[DroidKaigi 2026] Making UI specifications visible: Android UI development in the AI agent era supported by Compose Screenshot Testing and galleries
syarihu
0
210
人気商品が「ちゃんと買える」をつくる ー ECの負荷改善
ykagano
1
170
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Typedesign – Prime Four
hannesfritz
42
3.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.9k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
680
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
310
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
510
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
64k
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 =