Updating context from nested component

Опубликовано: 03 Ноябрь 2024
на канале: Logan Lee
202
0

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...