MCPcopy
hub / github.com/facebook/react / Consumer

Function Consumer

packages/react-reconciler/src/__tests__/ReactNewContext-test.js:166–173  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

164 }
165
166 function Consumer(props) {
167 Scheduler.log('Consumer');
168 return (
169 <ContextConsumer>
170 {value => {
171 Scheduler.log('Consumer render prop');
172 return <span prop={'Result: ' + value} />;
173 }}
174 </ContextConsumer>
175 );
176 }

Callers

nothing calls this directly

Calls 1

useContextFunction · 0.50

Tested by

no test coverage detected