import React, {useId, useState} from "react"; interface radioEntry { label: string, data: any, } interface IProps { groupLabel: string, items: radioEntry[], defaultData: any } function RadioButtonGroup(props: IProps) { const [selected, setSelected] = useState(props.defaultData); return ( <>

{props.groupLabel}

{ props.items.map((item) => ( )) }
currently selected: {selected} ) } export default RadioButtonGroup //

Sort

// // //