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

Interface FunctionComponent

compat/src/internal.d.ts:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28export interface FunctionComponent<P = {}> extends PreactFunctionComponent<P> {
29 shouldComponentUpdate?(nextProps: Readonly<P>): boolean;
30 _forwarded?: boolean;
31 _patchedLifecycles?: true;
32}
33
34export interface VNode<T = any> extends PreactVNode<T> {
35 $$typeof?: symbol | string;

Callers

nothing calls this directly

Implementers 15

ThrowOrRendercompat/test/browser/suspense-hydration
Blockercompat/test/browser/suspense.test.jsx
Apptest/browser/fragments.test.jsx
SubListtest/browser/fragments.test.jsx
Innertest/browser/refs.test.jsx
Childtest/browser/refs.test.jsx
Itemtest/browser/keys.test.jsx
NoUpdatetest/browser/createContext.test.jsx
Outertest/browser/lifecycles/lifecycle.test
Innertest/browser/lifecycles/lifecycle.test
Footest/browser/lifecycles/lifecycle.test
Apptest/browser/lifecycles/lifecycle.test

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…