portal-lazy
The button is rendered at the end of the document.
12345678910111213141516171819
import { Suspense, lazy } from "react";import "./style.css";const Button = lazy(() =>import("@ariakit/react/button").then((mod) => ({ default: mod.Button })),);export default function Example() {return (<Suspense fallback="Loading">The button is rendered at the end of the document.</Suspense>);}import { Suspense, lazy } from "react";import "./style.css";const Button = lazy(() =>import("@ariakit/react/button").then((mod) => ({ default: mod.Button })),);export default function Example() {return (<Suspense fallback="Loading">The button is rendered at the end of the document.</Suspense>);}