Sitemap
1 min readApr 8, 2020

Hi Sanjan,

yes, it will update and re-render, because it is the default behavior of React Context API.

This happens running the sample code in this article, but in the library react-context-hook this problem is fixed. So you can use it without performance issues.

Lorenzo Spyna
Lorenzo Spyna

Written by Lorenzo Spyna

💻Writes web2 and web3 code | 🚀 firenze.dev co-founder | 🥑 0xpolygon Advocate — https://spyna.it

Responses (1)