Skip to content

Function: useStateValue()

API / @xmachines/play-solid / useStateValue

function useStateValue<T>(path): Accessor<T | undefined>;

Defined in: @xmachines/json-render-solid

The value of the state at path.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
pathstring | Accessor<string | undefined>The path, or an accessor of the path, such as () => props.bindings?.value, which follows the path of now.

Returns

Accessor<T | undefined>