MCPcopy Create free account
hub / github.com/ampproject/amphtml / App

Function App

test/unit/preact/test-base-element-runtime.js:83–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82 it('preact ref passing vnode smoke test', () => {
83 function App() {
84 // Don't call useImperativeHandle.
85 }
86 const ref = env.sandbox.spy();
87 Preact.render(<App ref={ref} />, document.body);
88 // When this test fails, that means Preact has fixed their ref setting.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected