Skip to main content

Function: useXYPadContext()

Call Signature​

function useXYPadContext(): XYPadContextValue;

Defined in: react/src/components/XYPad/context.tsx:41

Everything here is derived during render, so there is no state to keep in sync: value comes from the props of Root and the rest follows from it.

Returns​

XYPadContextValue

Call Signature​

function useXYPadContext<T>(selector): T;

Defined in: react/src/components/XYPad/context.tsx:42

Everything here is derived during render, so there is no state to keep in sync: value comes from the props of Root and the rest follows from it.

Type Parameters​

Type Parameter
T

Parameters​

ParameterType
selector(state) => T

Returns​

T