MCPcopy
hub / github.com/preactjs/preact / fn

Function fn

test/browser/lifecycles/componentDidCatch.test.jsx:115–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 };
114
115 const fn = () =>
116 render(
117 <Receiver>
118 {[1, 2].map(i => (
119 <Child key={i} i={i} />
120 ))}
121 </Receiver>,
122 scratch
123 );
124 expect(fn).to.not.throw();
125
126 rerender();

Callers 1

renderMethod · 0.70

Calls 1

renderFunction · 0.90

Tested by

no test coverage detected