Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
variable usePreferAnyProp
import { usePreferAnyProp } from "https://deno.land/x/react_querybuilder@v7.5.1/packages/react-querybuilder/src/hooks/usePreferProp.ts";

For given default, prop, and context values, return the first provided of prop, context, and default, in that order.

type

(
def?: any,
prop?: any,
context?: any,
) => unknown