MCPcopy Create free account
hub / github.com/FormidableLabs/react-live / WithLive

Function WithLive

packages/react-live/src/hoc/withLive.tsx:15–19  ·  view source on GitHub ↗
(props: T)

Source from the content-addressed store, hash-verified

13 WrappedComponent: ComponentType<T & Props>,
14) {
15 const WithLive = (props: T) => (
16 <LiveContext.Consumer>
17 {(live) => <WrappedComponent live={live} {...props} />}
18 </LiveContext.Consumer>
19 );
20
21 WithLive.displayName = "WithLive";
22 return WithLive;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected