MCPcopy Create free account
hub / github.com/drcmda/react-contextual / context.js

File context.js

assets/examples/context.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { subscribe, moduleContext, transformContext } from 'react-contextual'
2
3const Theme = moduleContext()(
4 ({ context, color, children }) => <context.Provider value={color} children={children} />

Callers

nothing calls this directly

Calls 4

moduleContextFunction · 0.85
transformContextFunction · 0.85
subscribeFunction · 0.85
renderMethod · 0.45

Tested by

no test coverage detected