Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
variable usePreferProp
import { usePreferProp } from "https://deno.land/x/react_querybuilder@v7.5.2/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: boolean,
prop?: boolean,
context?: boolean,
) => unknown