@antadesign/anta
    Preparing search index...

    Function configureUnreviewed

    • Swap the underlying JSX factory (and, optionally, the hooks) used by all anta components.

      Not needed for React or Preact-with-compat — those work automatically. Call this before rendering any anta components when using Preact without compat aliasing, or a custom JSX runtime. Pass hooks when your runtime's hooks don't resolve via the react specifier (the stateful wrappers — RadioGroup, Calendar, InputDate — need useState / useId / useMemo); omit it and they default to whatever react resolves to.

      Parameters

      • jsx: (
            type: ComponentType,
            props: Record<string, unknown> | null,
            ...children: unknown[],
        ) => unknown
      • OptionalFragment: ComponentType
      • Optionalhooks: {
            useState?: UseState;
            useId?: UseId;
            useMemo?: UseMemo;
            useRef?: UseRef;
            useLayoutEffect?: UseLayoutEffect;
            useSyncExternalStore?: UseSyncExternalStore;
        }

      Returns void

      import { configure } from '@antadesign/anta'
      import { h, Fragment } from 'preact'
      import { useState, useId, useMemo } from 'preact/hooks'
      configure(h, Fragment, { useState, useId, useMemo })