MCPcopy
hub / github.com/clientIO/joint / Main

Function Main

packages/joint-react/src/stories/examples/with-node-update/code.tsx:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function Main() {
58 const elements = useElements<BaseElementWithData>();
59 return (
60 <div style={{ display: 'flex', flexDirection: 'row' }}>
61 <Paper width="100%" className={PAPER_CLASSNAME} height={280} renderElement={RenderElement} />
62 <div style={{ display: 'flex', flexDirection: 'column' }}>
63 {elements.map((item) => {
64 return <ElementInput key={item.id} {...item} />;
65 })}
66 </div>
67 </div>
68 );
69}
70
71export default function App() {
72 return (

Callers

nothing calls this directly

Calls 2

useElementsFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected