Configure the JSX factory, fragment, and hooks before rendering Anta components.
Client-rendered React and Preact with React compatibility aliases need no setup.
Pass your runtime's hooks object as a whole. It replaces the previous object;
omitted hooks never fall back to another renderer. A missing hook reports an
error when a component uses it. Omitting the object restores React's hooks.
Configure the same package entry in each process or thread that renders JSX.
Set options.hydratingEvents to true in the browser entry before hydrating
server-rendered HTML. Client-only apps and worker renderers forward event
subscriptions immediately by default, including workers with a window shim.
Each call resets the option to false when omitted. Configure before mounting;
keep the option unchanged for a mounted tree.
Configure the JSX factory, fragment, and hooks before rendering Anta components. Client-rendered React and Preact with React compatibility aliases need no setup.
Pass your runtime's hooks object as a whole. It replaces the previous object; omitted hooks never fall back to another renderer. A missing hook reports an error when a component uses it. Omitting the object restores React's hooks. Configure the same package entry in each process or thread that renders JSX. Set
options.hydratingEventstotruein the browser entry before hydrating server-rendered HTML. Client-only apps and worker renderers forward event subscriptions immediately by default, including workers with awindowshim. Each call resets the option tofalsewhen omitted. Configure before mounting; keep the option unchanged for a mounted tree.