正在加载视频...

视频加载失败

⚛️ React optimization tip: break your context into chunks so only the updated parts re-render ↓

42,898 次观看 • 1 年前 •via X (Twitter)

11 条评论

George Moller 的头像
George Moller1 年前

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 70+ video tutorials just like this one. Check them out ↓

Matt Figdore 的头像
Matt Figdore2 年前

This is the biggest productivity cheat code right now. Kiss reading documents goodbye. You can get an instant summary of any document with this tool.

Kristian Veter 的头像
Kristian Veter1 年前

or use react compiler

Muhi Masri 的头像
Muhi Masri1 年前

This is an essential technique when scaling React applications. You could end up with a large tree of components updating due to a small state change.

Petar Ivanov 的头像
Petar Ivanov1 年前

Smaller contexts ⇒ Less reasons to change and rerender.

Toyyib 💙 的头像
Toyyib 💙1 年前

@Rhoy__b @ibr9heem

Irshath 的头像
Irshath1 年前

you can also have separate context for methods and states to optimise it even more. I saw that implemented in bluesky app.

Blake 戴至诚 的头像
Blake 戴至诚1 年前

Will this remain relevant with the React compiler?

syed faheem 的头像
syed faheem1 年前

Make one to optimise compound components. Despite memorizing referrence values and using callbacks for functions, i sometimes see a flicker

Tincho 的头像
Tincho1 年前

What theme is it?

Fabrizio 的头像
Fabrizio1 年前

I would personally avoid to use Context as much as possibile I explain my approach in this article

相关视频