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
amkkr
October 26, 2025
Programming
40
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
31
Next.jsのプロダクトでzodをReact Hook Formなしで使った話
ama_o255
0
53
CSSの歴史から選定まで
ama_o255
0
23
AIで下げたい参入障壁
ama_o255
1
37
Other Decks in Programming
See All in Programming
Verilogで学ぶCPU自作入門.pdf
uyuki234
8
4k
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
350
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
130
Rでドレミ/Do-Re-Mi_with_R
florets1
0
120
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
8
5.5k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
140
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.5k
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
1
2.2k
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
450
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
7.5k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
310
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
770
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
610
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.1k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
690
Skip the Path - Find Your Career Trail
mkilby
1
240
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
350
The browser strikes back
jonoalderson
0
1.8k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
860
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Facilitating Awesome Meetings
lara
57
7.2k
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 で本気(ガチ)で低くなったなと痛感します