collection
Items count: 0
🍎 Apple
🍇 Grape
🍊 Orange
12345678910111213141516
import * as Ariakit from "@ariakit/react";import "./style.css";export default function Example() {const length = collection.useState((state) => state.renderedItems.length);return (<div>Items count: {length}</div>);}import * as Ariakit from "@ariakit/react";import "./style.css";export default function Example() {const length = collection.useState((state) => state.renderedItems.length);return (<div>Items count: {length}</div>);}