Loading video...

Video Failed to Load

Go Home

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

42,898 views • 1 year ago •via X (Twitter)

11 Comments

George Moller's profile picture
George Moller1 year ago

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's profile picture
Matt Figdore2 years ago

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's profile picture
Kristian Veter1 year ago

or use react compiler

Muhi Masri's profile picture
Muhi Masri1 year ago

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's profile picture
Petar Ivanov1 year ago

Smaller contexts ⇒ Less reasons to change and rerender.

Toyyib 💙's profile picture
Toyyib 💙1 year ago

@Rhoy__b @ibr9heem

Irshath's profile picture
Irshath1 year ago

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

Blake 戴至诚's profile picture
Blake 戴至诚1 year ago

Will this remain relevant with the React compiler?

syed faheem's profile picture
syed faheem1 year ago

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

Tincho's profile picture
Tincho1 year ago

What theme is it?

Fabrizio's profile picture
Fabrizio1 year ago

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

Related Videos