MCPcopy
hub / github.com/react/react / readContext

Function readContext

packages/react-reconciler/src/__tests__/ReactNewContext-test.js:53–57  ·  view source on GitHub ↗
(Context)

Source from the content-addressed store, hash-verified

51 }
52
53 function readContext(Context) {
54 const dispatcher =
55 React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.H;
56 return dispatcher.readContext(Context);
57 }
58
59 // Note: This is based on a similar component we use in www. We can delete
60 // once the extra div wrapper is no longer necessary.

Callers 5

renderMethod · 0.70
FooAndBarFunction · 0.70
BazFunction · 0.70
renderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected