Difference between 'children' and 'items' in props for useSingleSelectListState #2929
-
Hi there, I'm trying to build a component (see #2859 (comment)) that allows for a selection of a single number. Im currently using a simple 'useState' to manage the state for this component, but I'm trying to learn as much of the React-ARIA api as I can. It seems like I'm not quite sure how to use the hook, however. In particular, I can't quite tell the difference between the purpose of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'd recommend reading this document about how our collection components work: https://react-spectrum.adobe.com/react-stately/collections.html. |
Beta Was this translation helpful? Give feedback.
I'd recommend reading this document about how our collection components work: https://react-spectrum.adobe.com/react-stately/collections.html.