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 Fiberまとめ
Search
locol
April 13, 2018
Technology
0
260
ざっくりReact Fiberまとめ
locol
April 13, 2018
Tweet
Share
More Decks by locol
See All by locol
Which is the best option for linting: Pre-commit or CI?
locol23
1
370
Introduction to React
locol23
0
65
Introduction to Scrum
locol23
0
310
Reactでリプレースして爆速になったのでちょっと仕組み公開
locol23
0
770
Other Decks in Technology
See All in Technology
LY Tableauでの Tableau x AIの実践 (at Tableau Now! - 2026-02-26)
yoshitakaarakawa
0
1.2k
組織のSREを推進するためのPlatform EngineeringとEKS / Platform Engineering and EKS to drive SRE in your organization
chmikata
0
180
チームメンバー迷わないIaC設計
hayama17
5
3.7k
Agentic Codingの実践とチームで導入するための工夫
lycorptech_jp
PRO
0
390
メタデータ同期に潜んでいた問題 〜 Cache Stampede 時の Cycle Wait を⾒つけた話
lycorptech_jp
PRO
0
140
マイグレーションガイドに書いてないRiverpod 3移行話
taiju59
0
350
Webアクセシビリティ技術と実装の実際
tomokusaba
0
210
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
4
1k
新職業『オーケストレーター』誕生 — エージェント10体を同時に回すAgentOps
gunta
1
250
男(監査)はつらいよ - Policy as CodeからAIエージェントへ
ken5scal
5
710
EMからICへ、二周目人材としてAI全振りのプロダクト開発で見つけた武器
yug1224
3
170
DX Improvement at Scale
ntk1000
2
210
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
210
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
67
37k
Automating Front-end Workflow
addyosmani
1370
200k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
460
SEO for Brand Visibility & Recognition
aleyda
0
4.3k
Un-Boring Meetings
codingconduct
0
220
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
Abbi's Birthday
coloredviolet
2
5.1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
93
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
950
Transcript
ざっくりReact Fiberまとめ
Fiberとは • Stackに変わる新しいReconciliation(リコンシリエーション)用の構造 • React v17よりデフォルトでFiberを使用した非同期のRenderingに変更 →Fiberを使用した非同期Renderingになることで、 ユーザのアクション(Inputへの入力など)を待たせないようになる
Reconsiliationとは • Virtual DOMの差分取得アルゴリズム • 差分取得結果をもとにHost(DOM等)に反映 ※HostとはブラウザであればDOM、 ネイティブであればReactNativeのビュー
StackとFiberの違い Stack(既存) Rootから順番に全て の子Componentを処 理後、renderingする 為、処理中にユーザ からアクセスがあっ た場合に対応できな い Fiber(v17〜)
class App extends React.Component { render(){ return( <Head /> <div>test</div> ) } } : Fiber Fiberの非同期 RenderingではFiber 単位で処理が実行さ れ、優先度によって Idle中の処理に回す などFlexibleに行わ れる為、ユーザを待 たせない
まとめ • renderingする裏側の構造の変更の為、実際に使用する側としては 意識する必要はあまりない • 非同期Renderingにより、ユーザを待たせないようになる
Appendix
Links • https://github.com/acdlite/react-fiber-architecture • http://blog.koba04.com/post/2017/04/25/a-state-of-react-fiber/ • https://qiita.com/seya/items/a655adb340af3b6690b5 • https://postd.cc/react-fiber-architecture/