useProvider
Allows the host that instantiates this useProvider to become the context.
This hook enables you to take control of the context from the component that instantiates useProvider
, thus avoiding the need to instantiate the context node in the DOM.
Example of the useProvider hook:
Objective
Avoid creating an instantiable context node in the DOM.