000e0c0192
* memoize the `currentDisplayValue` This used to be re-executed every single render. This should typically not be an issue, but if you use non-deterministic code (E.g.: `Math.random`, `Date.now`, …) then it could result in incorrect values. Using `useMemo` allows us to only re-run it if the `data.value` or thte `displayValue` actually changes. * add test to verify `currentDisplayValue` is stable * update changelog
@headlessui/react
A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
Installation
npm install @headlessui/react
Documentation
For full documentation, visit headlessui.dev.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using the library: