3 ms·
And if you use React, the react-aria library is excellent for this. See e.g. the useCheckbox hook: https://react-spectrum.adobe.com/react-aria/useCheckbox.html
by Vinnl 4y ago
And if you use React, the react-aria library is excellent for this. See e.g. the useCheckbox hook: https://react-spectrum.adobe.com/react-aria/useCheckbox.html https://react-spectrum.adobe.com/react-aria/useCheckbox.html
Though if your "checkbox" is to take effect immediately, consider using a toggle button: https://react-spectrum.adobe.com/react-aria/useToggleButton.html https://react-spectrum.adobe.com/react-aria/useToggleButton....