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.
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
hookswhen your runtime's hooks don't resolve via thereactspecifier (the stateful wrappers —RadioGroup,Calendar,InputDate— needuseState/useId/useMemo); omit it and they default to whateverreactresolves to.