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
190
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
0
230
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
210
Shifting from MCP to Skills / ベストプラクティスの変遷を辿る
yamanoku
5
1.1k
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
4
8.8k
たかがボタン、されどボタン ~button要素から深ぼるボタンUIの定義について~ / BuriKaigi 2026
yamanoku
1
520
ひとり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
690
転生したらTypeScriptのEnumだった件 ~型安全性とエコシステムの変化で挫けそうになっているんだが~ / TSKaigi 2025
yamanoku
0
80
リアクティブシステムの変遷から理解するalien-signals / Learning alien-signals from the evolution of reactive systems
yamanoku
3
2.1k
Other Decks in Technology
See All in Technology
設計レビューとAIハーネスで向き合う AIが生み出した新しいボトルネックの対処法 / Design Reviews and AI Harnesses Against New Bottlenecks Created by AI
nstock
3
410
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8.5k
Amazon Quick 入門!
ysuzuki
2
130
複数プロダクト組織のAIネイティブ化における戦略 / AICon2026_kude
rakus_dev
0
290
発表と総括 / Presentations and Summary
ks91
PRO
0
180
第67回コンピュータビジョン勉強会CVPR2026読会前編
tsukamotokenji
0
160
全員がリーダーである世界へ キリマンジャロ登頂とシェアド・リーダー
jinwatanabe
0
120
【公開用】AI_Dev_Ex2026_AI_登壇資料
matsuritechnologies
PRO
1
440
Aurora MySQL 8.4リリース! Rubyistが備えること / what-rubyist-should-prepare-for-aurora-mysql-8-4
fkmy
0
400
AI Native なプロダクト組織の立ち上げ方 : 生産性 100 倍への挑戦
mikesorae
0
1.2k
キャリアLT会#3
beli68
2
230
非定型なドキュメントを効率よくリファクタする 〜えぇ!?仕様書27本の移行が1日で終わったって!?〜
subroh0508
2
600
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
410
Bash Introduction
62gerente
615
220k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
300
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
370
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Believing is Seeing
oripsolob
1
170
How to make the Groovebox
asonas
2
2.3k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
250
Context Engineering - Making Every Token Count
addyosmani
9
1k
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 =