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
350
Introduction to React
locol23
0
62
Introduction to Scrum
locol23
0
300
Reactでリプレースして爆速になったのでちょっと仕組み公開
locol23
0
770
Other Decks in Technology
See All in Technology
小さく、早く、可能性を多産する。生成AIプロジェクト / prAIrie-dog
visional_engineering_and_design
0
380
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
330
ファインディにおけるフロントエンド技術選定の歴史
puku0x
1
900
あの夜、私たちは「人間」に戻った。 ── 災害ユートピア、贈与、そしてアジャイルの再構築 / 20260108 Hiromitsu Akiba
shift_evolve
PRO
0
520
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
202512_AIoT.pdf
iotcomjpadmin
0
190
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
21k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
業務の煩悩を祓うAI活用術108選 / AI 108 Usages
smartbank
9
20k
Keynoteから見るAWSの頭の中
nrinetcom
PRO
1
170
Java 25に至る道
skrb
3
190
Redshift認可、アップデートでどう変わった?
handy
1
130
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.5k
Odyssey Design
rkendrick25
PRO
0
460
The SEO identity crisis: Don't let AI make you average
varn
0
47
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
110
Facilitating Awesome Meetings
lara
57
6.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
Raft: Consensus for Rubyists
vanstee
141
7.3k
Navigating Weather and Climate Data
rabernat
0
66
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
420
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
880
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
120
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/