MCPcopy Create free account
hub / github.com/RobPruzan/react-scratch / getComponentProps

Function getComponentProps

src/react/core.ts:18–23  ·  view source on GitHub ↗
(meta: ReactComponentInternalMetadata)

Source from the content-addressed store, hash-verified

16} from "./types";
17
18const getComponentProps = (meta: ReactComponentInternalMetadata) => {
19 if (meta.kind === "empty-slot") {
20 return null;
21 }
22 return meta.props;
23};
24
25const updateElement = ({
26 props,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected