Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
React 18からのAPI useIDを使おう!/ Let's Use the useID ...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yamanoku
May 16, 2025
Technology
230
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
大型犬好きによるPugの紹介
yamanoku
1
170
SvelteのHTMLはどう解釈されているのか / How Svelte compile HTML
yamanoku
1
350
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
290
Shifting from MCP to Skills / ベストプラクティスの変遷を辿る
yamanoku
5
1.2k
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
4
9k
たかがボタン、されどボタン ~button要素から深ぼるボタンUIの定義について~ / BuriKaigi 2026
yamanoku
1
600
ひとりNavigation API Advent Calendarの紹介 / Mita.ts #9
yamanoku
1
240
DenoとJSRで実現する最速MCPサーバー開発記 / Building MCP Servers at Lightning Speed with Deno and JSR
yamanoku
2
790
転生したらTypeScriptのEnumだった件 ~型安全性とエコシステムの変化で挫けそうになっているんだが~ / TSKaigi 2025
yamanoku
0
90
Other Decks in Technology
See All in Technology
渡米前の準備を制す!re:Invent 2026徹底準備術 / The Ultimate Preparation Guide for re:Invent 2026
yuj1osm
1
500
Copilot Coworkで「みのるん式」やってみた
minorun365
PRO
1
1.2k
kintoneで在庫管理システムを作るときの要件定義・設計ポイント
kai0707
0
220
(swiftc) NonCopyableとライフタイム修飾子
teamhimeh
0
170
あなたのDartコードは丸見えかもしれない ~reFlutterで暴くFlutterアプリの中身と多層防御~
zozotech
PRO
0
750
Don't write the architecture only in the prompt.
neohsu
0
300
OneLakeをデータソースにした AI Search(Foundry IQ)の ライフサイクル管理
ryuseiiida
0
220
200人の配信コメント、 全部Jevが仕分けます 〜 マサカリガードを作ってみた 〜
katayamatg
1
510
攻撃 3 時間 vs 復旧 10 時間。アクセスキー流出の非対称性を体感するために CTF を作った話
kazzpapa3
1
130
新米を「売り越さない」、Aurora DSQLで作る在庫ゼロ死守の限定ドロップEC
yama3133
0
140
外国人エンジニアがVueプロトタイプで仕様を合わせている話 / Vue Fes Japan 2026 LT
eluwing
0
380
Building Audio Plugin Ecosystem for Android in 2026
atsushieno
1
110
Featured
See All Featured
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
510
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
It's Worth the Effort
3n
188
29k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
580
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
550
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 =