Type Aliases
AnyComponent
AnyComponent<P>: Component<P> | FC<P>
Type Parameters
CreateSlot
CreateSlot: { (computeFn: (() => any)): ReactNode; <A>(computeFn: ((...args: A) => any), ...args: A): ReactNode }
Type declaration
- (computeFn: (() => any)): ReactNode
- <A>(computeFn: ((...args: A) => any), ...args: A): ReactNode
Parameters
Returns ReactNode
Type Parameters
Parameters
computeFn: ((...args: A) => any)
Rest ...args: A
Returns ReactNode
Directive
Directive<E>: ((ref: E) => void | VoidFunction)
Type Parameters
Type declaration
- (ref: E): void | VoidFunction
Parameters
Returns void | VoidFunction
Effect
Type Parameters
Type declaration
Parameters
Returns void | VoidFunction
EffectContext
Effect
Context
<R>: { refs
: Refs<R> }Type Parameters
Refs
Refs<T, F>: { [ key in keyof T]: T[key] } & { [ key in `${keyof T & string}Ref`]: RefObject<any> } & { forwardedRef: ForwardedRef<F> }
Type Parameters
T extends Record<string, any> = {}
F = any
StableOptions
StableOptions: { name?: string }
create a component with special props and HOC