Hello. In this video we investigate a code example.
It says:
"It is often necessary to update the context from a component that is nested somewhere deeply in the component tree. In this case you can pass a function down through the context to allow consumers to update the context:"
Watch ;)
Refer: https://reactjs.org/docs/context.html...
Refer: https://codesandbox.io/s/updating-con...