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
270
0
Share
ざっくりReact Fiberまとめ
locol
April 13, 2018
More Decks by locol
See All by locol
Which is the best option for linting: Pre-commit or CI?
locol23
1
410
Introduction to React
locol23
0
70
Introduction to Scrum
locol23
0
320
Reactでリプレースして爆速になったのでちょっと仕組み公開
locol23
0
780
Other Decks in Technology
See All in Technology
[みん強]AIの価値を最大化するデータ基盤戦略:Self-Service型Data Meshへの転換とAgentic AI Meshに向けた取り組み with Snowflake他
y_matsubara
1
180
AI全盛の今だからこそ、あえてもう一度振り返るAPIの基礎
smt7174
3
160
個人最適から組織最適へ — 仕組みで進めるAI推進
rfdnxbro
0
110
論文紹介:Pixal3D (SIGGRAPH 2026)
tenten0727
0
700
AI時代に改めて考える、ドメイン駆動設計 - モデリングが「AIへの共通言語」になる
littlehands
7
1.8k
最新技術を"今は選ばない"という技術選定
leveragestech
PRO
0
390
Pythonでベイズモデリング
soogie
0
170
CARTA HOLDINGS エンジニア向け 採用ピッチ資料 / CARTA-GUIDE-for-Engineers
carta_engineering
0
47k
checker.tsにチキンレースを仕掛けてみた:型エラー(TS2589)が発生する境界線を求めて
hal_spidernight
1
170
【禁断】Obsidianの第二の脳に「知の巨人」と呼ばれた師匠の脳をロードしてみた
nagatsu
0
5.7k
JavaScript実装の自作プログラミング言語をTypeScript実装に移行した話
keisukeikeda
1
120
AI とサービス・デザイン / AI and Service Design
ks91
PRO
0
110
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
360
From π to Pie charts
rasagy
0
190
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Code Review Best Practice
trishagee
74
20k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
BBQ
matthewcrist
89
10k
How to train your dragon (web standard)
notwaldorf
97
6.6k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
380
Deep Space Network (abreviated)
tonyrice
0
150
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/