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
yamanoku
May 16, 2025
Technology
220
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
110
SvelteのHTMLはどう解釈されているのか / How Svelte compile HTML
yamanoku
1
330
Navigation APIと見るSvelteKitのWeb標準志向
yamanoku
2
280
Shifting from MCP to Skills / ベストプラクティスの変遷を辿る
yamanoku
5
1.2k
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
4
9k
たかがボタン、されどボタン ~button要素から深ぼるボタンUIの定義について~ / BuriKaigi 2026
yamanoku
1
570
ひとりNavigation API Advent Calendarの紹介 / Mita.ts #9
yamanoku
1
230
DenoとJSRで実現する最速MCPサーバー開発記 / Building MCP Servers at Lightning Speed with Deno and JSR
yamanoku
2
750
転生したらTypeScriptのEnumだった件 ~型安全性とエコシステムの変化で挫けそうになっているんだが~ / TSKaigi 2025
yamanoku
0
89
Other Decks in Technology
See All in Technology
AI時代だからこそ推したい!Gitコマンド再入門
munakata
0
170
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
360
SDDの運用にめげずに向き合った話
sansantech
PRO
1
140
OR学会2026年秋期大会_機械学習と数理最適化の融合による、配合レシピ最適化システム開発事例
brainpadpr
0
120
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
720
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.3k
SREでアラート疲れを 解決しよう!
kairim0
1
220
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
0
270
ファミコンでPHPを動かす / PHP on the Famicom side b
tomzoh
0
140
Getting Started with Google Antigravity
glaforge
0
120
AIに攻撃される前に、AIに攻撃させる
tsuchikazu
0
170
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
7
2.7k
Featured
See All Featured
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
320
Unsuck your backbone
ammeep
672
58k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
840
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
560
Leo the Paperboy
mayatellez
10
2.4k
A Soul's Torment
seathinner
8
3.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Odyssey Design
rkendrick25
PRO
2
870
Utilizing Notion as your number one productivity tool
mfonobong
4
610
Making Projects Easy
brettharned
120
6.8k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
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 =