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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
380
Introduction to React
locol23
0
67
Introduction to Scrum
locol23
0
310
Reactでリプレースして爆速になったのでちょっと仕組み公開
locol23
0
770
Other Decks in Technology
See All in Technology
Kubernetesの「隠れメモリ消費」によるNode共倒れと、Request適正化という処方箋
g0xu
0
120
イベントで大活躍する電子ペーパー名札を作る(その2) 〜 M5PaperとM5PaperS3 〜 / IoTLT @ JLCPCB オープンハードカンファレンス
you
PRO
0
200
やさしいとこから始めるGitHubリポジトリのセキュリティ
tsubakimoto_s
1
1k
The Rise of Browser Automation: AI-Powered Web Interaction in 2026
marcthompson_seo
0
310
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
「コントロールの三分法」で考える「コト」への向き合い方 / phperkaigi2026
blue_goheimochi
0
150
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
490
私がよく使うMCPサーバー3選と社内で安全に活用する方法
kintotechdev
0
100
SSoT(Single Source of Truth)で「壊して再生」する設計
kawauso
2
340
MCPで決済に楽にする
mu7889yoon
0
110
【社内勉強会】新年度からコーディングエージェントを使いこなす - 構造と制約で引き出すClaude Codeの実践知
nwiizo
24
12k
夢の無限スパゲッティ製造機 #phperkaigi
o0h
PRO
0
360
Featured
See All Featured
Mind Mapping
helmedeiros
PRO
1
130
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
980
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Building the Perfect Custom Keyboard
takai
2
720
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
120
Mobile First: as difficult as doing things right
swwweet
225
10k
The Curse of the Amulet
leimatthew05
1
10k
Optimizing for Happiness
mojombo
378
71k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.4k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
390
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
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/