Home
Language
English
Türkçe
Bahasa Indonesia
About
Privacy Policy
Terms of Service
Pricing
Sign In
Download All
Share
Yun-Han
@yunhan_tw
#Taiwan
🇹🇼
New York
Joined December 2013
255
Following
53
Followers
483
Posts
Yun-Han
@yunhan_tw
over 1 year ago
https://t.co/lo46CxNdaj
Yun-Han
@yunhan_tw
over 1 year ago
30 years!! https://t.co/LUa9oWPM2g
Yun-Han
@yunhan_tw
about 3 years ago
ExplainThis 全端開發雙週報 #11 https://t.co/JituDUb3oI
Yun-Han
@yunhan_tw
about 3 years ago
React 開發者一定要知道的底層架構— React Fiber by 莫力全 Kyle Mo https://t.co/w617IW6Dgz
Who to follow
Amazicsoft
@Amazicsoft
Amazic is a leading international news platform for the DevOps community.
Tim McGraw
@temcgraw
Yun-Han
@yunhan_tw
about 3 years ago
https://t.co/JyzDrSJ1lf
Yun-Han
@yunhan_tw
about 3 years ago
https://t.co/PfgoHDLD7H
Yun-Han
@yunhan_tw
over 3 years ago
https://t.co/pIjpNZmPRX
Yun-Han
@yunhan_tw
over 3 years ago
ExplainThis 全端開發雙週報 #8 https://t.co/vSvRbTyrtt
yunhan_tw
retweeted
前端輕鬆聊
@fetalkpodcast
over 3 years ago
這篇來自 Vercel 的文章真的很有資訊量,應該可以釐清許多在 React 18 中引入的概念。 Main Thread JavaScript 在單線程環境中運行,我們有許多任務在這個主線程中排隊等待執行。Main thread不僅負責這些任務,還負責處理網路事件、用戶互動等。如果瀏覽器花費太長時間來完成這些任務,那麼main thread可能會塞車,可能無法進行其他任何操作,如回應用戶點擊或 造成UI 動畫卡頓。 How React Renders React rendering有兩個階段,rendering 和 committing。基本上,在rendering階段,React 保持一個最新的Virtual DOM,並在狀態更新時創建一個新的Virtual DOM。Diffing之後看看哪個 DOM 需要更新然後commit,也就是更新實際的 DOM。 Traditional React Rendering React 給所有組件相同的優先級,所以它會嘗試一次渲染該組件樹中的所有東西。這意味著如果樹很大,React 需要一些時間來渲染,因此它會阻塞main thread。 在 React 18 中,它引入了一種新的並發渲染器,允許這種操作被中斷,以便main thread可以被釋放出來,看看是否有其他事情需要做,並且對用戶顯示出反應。 此外,並發渲染器可以嘗試在後台渲染多個組件樹,而不需要立即commit,這與以前需要一次性完成所有事情的方式不同。 Transitions 我們可以使用 useTransition hook手動將一個更新標記為非緊急的。這告訴 React 這是非緊急的,所以 React 如果有必要可以中斷這個component渲染階段來優化整體的渲染效果。 React Server Components 傳統上我們有客戶端渲染和服務器端渲染。兩者都需要 React 渲染器在客戶端重建組件樹,即使它已經在服務器上完成。React 服務器組件允許 React 將實際的serialized component tree發送到客戶端,並基於此渲染,而不是需要原來的 HTML 和 JavaScript bundle。 你可以使用 use client 指令將一個組件標記為客戶端組件,這實際上告訴 Next 在此組件上進行傳統的 SSR。 Suspense 使用 Suspense,我們可以告訴 React 延遲渲染一個組件樹,直到滿足某個條件。最好的例子是等待一個請求完成抓取,並在此期間顯示一個加載器。在幕後,當組件被懸掛時,React 會暫停渲染並專注於其他任務。 https://t.co/jMKCHo3Kf5
See More
Yun-Han
@yunhan_tw
over 3 years ago
2023年被裁員後的求職心得 by UX Stone https://t.co/gUOzKI9mee
Yun-Han
@yunhan_tw
over 3 years ago
為什麼最後我選擇用 React testing library 而放棄 Enzyme by Hannah Lin https://t.co/RdAMYPNHZW
Yun-Han
@yunhan_tw
over 4 years ago
Playwright Test can now test your React, Vue.js or Svelte components. https://t.co/OSK1VkZ6iX
Yun-Han
@yunhan_tw
over 4 years ago
https://t.co/gDdJmip9Gv
Yun-Han
@yunhan_tw
over 4 years ago
https://t.co/tWhPHzbepK
Yun-Han
@yunhan_tw
over 4 years ago
漫談元宇宙中的 NPC 對話:自然語言對話背後的技術 https://t.co/2j8wrl3926
Yun-Han
@yunhan_tw
almost 5 years ago
https://t.co/zAHJnCZtsJ
Yun-Han
@yunhan_tw
almost 5 years ago
I just completed "JavaScript: From Fundamentals to Functional JS, v2" by
@BiancaGando
on
@FrontendMasters
! https://t.co/AkJnta3F4E
Yun-Han
@yunhan_tw
over 5 years ago
I just joined the
#StoryblokBetaCrew
to discover an all-new Storyblok. https://t.co/tPdQNO2jLO
Yun-Han
@yunhan_tw
over 5 years ago
https://t.co/12yLDpy6Se
Yun-Han
@yunhan_tw
over 5 years ago
https://t.co/w4W5QQdzQd
Last Seen Users on Sotwe
Just live
Seen from
Germany
AnalSeks
Seen from
Turkey
WHO DID THAT ? HOUDINI !
Seen from
United States
Wilson
Seen from
United States
Phim Gây Việt
Seen from
Vietnam
Anonimus😈monclova
Seen from
Mexico
N u d e s T i k T o k
Seen from
Singapore
ايمن ولاء
Seen from
Netherlands
Bunda STW 🥀
Seen from
Japan
Jerii
Seen from
Malaysia
Trends for you
1
Bengals
Under 10K tweets
2
Aaron Rodgers
Under 10K tweets
3
Cowboys
Under 10K tweets
4
#TheGildedAge
Under 10K tweets
5
DK Metcalf
Under 10K tweets
6
Purdy
Under 10K tweets
7
#BaddiesUSAChapter3
Under 10K tweets
8
Tomlin
Under 10K tweets
9
#RHOP
Under 10K tweets
10
#HereWeGo
Under 10K tweets
Most Popular Users
1
Elon Musk
@elonmusk
240.8M followers
2
Barack Obama
@barackobama
118.7M followers
3
Cristiano Ronaldo
@cristiano
114.5M followers
4
Donald J. Trump
@realdonaldtrump
111.9M followers
5
Narendra Modi
@narendramodi
107M followers
6
Rihanna
@rihanna
98.7M followers
7
NASA
@nasa
92.2M followers
8
Justin Bieber
@justinbieber
91.8M followers
9
KATY PERRY
@katyperry
90M followers
10
Taylor Swift
@taylorswift13
84M followers
11
Lady Gaga
@ladygaga
75.5M followers
12
Virat Kohli
@imvkohli
73.4M followers
13
Kim Kardashian
@kimkardashian
70.8M followers
14
YouTube
@youtube
68.7M followers
15
Neymar Jr
@neymarjr
66.4M followers
16
Bill Gates
@billgates
65.2M followers
17
Selena Gomez
@selenagomez
63.1M followers
18
The Ellen Show
@theellenshow
62.2M followers
19
CNN
@cnn
61.7M followers
20
X
@x
60.6M followers
Olivia
Online
✨
⭐
💫