Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

42,898 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von George Moller
George Mollervor 1 Jahr

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 ↓

Profilbild von Matt Figdore
Matt Figdorevor 2 Jahren

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.

Profilbild von Kristian Veter
Kristian Vetervor 1 Jahr

or use react compiler

Profilbild von Muhi Masri
Muhi Masrivor 1 Jahr

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.

Profilbild von Petar Ivanov
Petar Ivanovvor 1 Jahr

Smaller contexts ⇒ Less reasons to change and rerender.

Profilbild von Toyyib 💙
Toyyib 💙vor 1 Jahr

@Rhoy__b @ibr9heem

Profilbild von Irshath
Irshathvor 1 Jahr

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

Profilbild von Blake 戴至诚
Blake 戴至诚vor 1 Jahr

Will this remain relevant with the React compiler?

Profilbild von syed faheem
syed faheemvor 1 Jahr

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

Profilbild von Tincho
Tinchovor 1 Jahr

What theme is it?

Profilbild von Fabrizio
Fabriziovor 1 Jahr

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

Ähnliche Videos