Kent C. Dodds 3/1/2021

How to optimize your context value

Read Original

This article explains when and how to optimize React context value to prevent unnecessary re-renders. It recommends separating state and dispatch functions into different context providers as a performance solution, but strongly cautions against optimization unless specific performance problems have been measured.

How to optimize your context value

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes