MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / DynamicSpreadParent

Function DynamicSpreadParent

examples/sandbox/src/App.tsx:93–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93const DynamicSpreadParent = () => {
94 const [props, setProps] = s.createSignal<any>({
95 a: 1,
96 b: 2,
97 c: 3,
98 style: {width: '160px', height: '30px', background: '#fcb', color: 'black'},
99 textContent: 'Before Change',
100 onclick: () =>
101 setProps({
102 style: {width: '160px', height: '30px', background: '#eba', color: 'black'},
103 textContent: 'After Change',
104 d: 4,
105 e: 5,
106 }),
107 })
108 const DynamicSpreadChild = (props: any) => <div {...props} />
109 return <DynamicSpreadChild {...props()} />
110}
111
112const Broken: s.Component = () => {
113 throw new Error('Oh No')

Callers

nothing calls this directly

Calls 1

propsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…