UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

13 lines (12 loc) 430 B
import { jsx as _jsx } from "react/jsx-runtime"; import { useMemo } from "react"; import { context } from "./context.js"; export function Root(props) { const value = useMemo(() => { return { orientation: props.orientation ?? "vertical", rtl: props.rtl ?? false, }; }, [props.orientation, props.rtl]); return _jsx(context.Provider, { value: value, children: props.children }); }