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 19.2の<Activity />を触ってみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
amkkr
October 26, 2025
Programming
43
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
React 19.2の<Activity />を触ってみた
2025.10 Mita.tsの資料です
amkkr
October 26, 2025
More Decks by amkkr
See All by amkkr
怪我をして考える情報アクセシビリティ
ama_o255
0
33
Next.jsのプロダクトでzodをReact Hook Formなしで使った話
ama_o255
0
58
CSSの歴史から選定まで
ama_o255
0
27
AIで下げたい参入障壁
ama_o255
1
39
Other Decks in Programming
See All in Programming
Distance field of Julia set
kinakomoti321
0
130
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
610
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
220
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
490
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
200
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
220
Seven New Principles of Software Engineering
yegor256
0
440
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
280
はじめてのPLATEAU
nokonoko1203
1
370
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
The Cult of Friendly URLs
andyhume
79
7.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Being A Developer After 40
akosma
PRO
92
590k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
430
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
Into the Great Unknown - MozCon
thekraken
41
2.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
340
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
68k
Transcript
React 19.2 の<Activity /> を触 ってみた Mita.ts
⾃⼰紹介 名前:amkkr Instagram 分析ツーû~開発にフûサイクûエンジニアxしv参加 前職wEdTech ~ベンチャーw、社内専⽤~在庫や顧客管理~台帳Web アプ úを開発しvいました X: @ama_O255
<Activity/> とは何か React 19.2 で導入された新機能で、コンポーネントの状態管理を簡素化しま す。従来のProps Drilling と比較して、より少ないコード量で入力状態を保持で きることが特徴です。 公式ドキュメント:
react.dev/reference/react/Activity
リリース時に巻き起こった議論 タブとかモーダルの状態を保ったまま切り替えや開閉ができるけど.. 今更? 条件付きレンダリングでよくね?
条件付きレンダリングだとこれまで コンポーネントが完全にアンマウントされる フォームの入力内容が消える スクロール位置がリセットされる データをrefetch する必要がある
実験してみる こんなページでお試し。すべ てのタブに - カウンター - テキストフィールド を持たせてます。 環境は React
Vite Deno の構成です。
実装⽐較: コード量の違い 実際~コーù²⽐較検証wたúポジøú²公開wvいまy2 従来~実装 タö²切º替えv²⼊⼒²保持uせようxy»xstate 管理 周ºww³yくzº|ち2 ÷ロジェクø~変数管理~ûーûや1⼊⼒²yう使う{{ よっvProps Drilling
問題|発⽣wたºwv1w³yu|あ »2 AI {任せvs¼|z出wu¼た↓ PropsDrillingMode.tsx Activity 利⽤ Activity API ²使⽤wた実装 タötx{state x{閉x込±v保持y»sx²2便利2 ActivityMode.tsx úポジøú: https://github.com/amkkr/deno-react-vite
Activity API の利点 ⼊⼒保持したい時{1 記述量の削減 従来⽐w1コード量を減¹すこ x|w}»予感2 開発体験の向上 シンプルz実装{¸º1保守性 x可読性|向上します2
重要z注意点 パフォーマンスへの影響 アンマウント後も状態が破棄されないという特性があºます2こ ¼{よº1ñòリ使⽤量が増加し1アプリケーションが重くz» 可能性があºます2 状態~永続化 コンýーネントがアンþ¶ントさ¼v²1⼊⼒状態保持さ¼続けま y2 ñòリ管理{注意 ⼤規模zアプリケー·ョンw1ñòリリーク~リ¹ク²考慮wた設
計が必要wy2 適切z使⽤場⾯²⾒極±» yべv~ケー¹w有効wあºませ³2プロ¸·クト~要件{応xv 判断wまwょう2
ご清聴ありがとうございました 新しいものを触るコストがLLM で本気(ガチ)で低くなったなと痛感します