Open History to see the last commit
function Subscribe<TSourceData, TSelected>(props): ComponentChildren;
Defined in: packages/preact-form/src/Subscribe.public.tsx:38
A Preact component that allows you to subscribe to source state.
This is useful for opting into state re-renders for specific parts of the state.
Type Parameters#
TSourceData#
TSourceData
TSelected#
TSelected
Parameters#
props#
SubscribeProps<TSourceData, TSelected>
Returns#
ComponentChildren