Note your example will re-render consumers more often than necessary.
reactjs.org/docs/context.html#caveats
Thanks for pointing that out! I made some updates to that example that should address this.
always important to RTFM; I messed up in this case. 😳
Always learning!
We're a place where coders share, stay up-to-date and grow their careers.
Note your example will re-render consumers more often than necessary.
reactjs.org/docs/context.html#caveats
Thanks for pointing that out! I made some updates to that example that should address this.
always important to RTFM; I messed up in this case. 😳
Always learning!