DEV Community

loading...

Discussion on: React Hooks: How to create and update Context.Provider

Collapse
eecolor profile image
EECOLOR

It seems your tutorial introduces the caveat described here: reactjs.org/docs/context.html#caveats

This causes all consumers of the context to re-render each time.