MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / RedNode

Function RedNode

react-flow-test/src/App.tsx:16–23  ·  view source on GitHub ↗
({ data }: NodePorps)

Source from the content-addressed store, hash-verified

14 }
15}
16function RedNode({ data }: NodePorps) {
17 return <div style={{background: 'red', width: '100px', height: '100px', textAlign: 'center'}}>
18 <Handle type="source" position={Position.Right} />
19 <Handle type="target" position={Position.Bottom} />
20
21 <div>{data.label}</div>
22 </div>
23}
24
25function BlueNode({ data }: NodePorps) {
26 return <div style={{background: 'blue', width: '50px', height: '50px', textAlign: 'center', color: '#fff'}}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected