Closed mathiasmadsen closed 1 year ago
RadioCard
The useRadio hook states that getCheckboxProps is deprecated.
useRadio
getCheckboxProps
In the example, the following code snippet:
function RadioCard(props) { const { getInputProps, getCheckboxProps } = useRadio(props) const input = getInputProps() const checkbox = getCheckboxProps()
should be replaced with:
function RadioCard(props) { const { getInputProps, getRadioProps } = useRadio(props) const input = getInputProps() const checkbox = getRadioProps()
Subject
RadioCard
Description
The
useRadio
hook states thatgetCheckboxProps
is deprecated.In the example, the following code snippet:
should be replaced with: