Value: ""
Код DemoRadioButtonWrapperexport const DemoRadioButtonWrapper = ({ children }) => {const [selectedOption, setSelectedOption] = React.useState('');const handleChange = (value) => {setSelectedOption(value);}return (<><p style={{textAlign: 'center', marginTop: 0}}><b>Value:</b> "{selectedOption || undefined}"</p><div style={flexStyle}>{children({onChange: handleChange,selectedOption: selectedOption,})}</div></>);}
Value: ""
Код DemoRadioButtonWrapperexport const DemoRadioButtonWrapper = ({ children }) => {const [selectedOption, setSelectedOption] = React.useState('');const handleChange = (value) => {setSelectedOption(value);}return (<><p style={{textAlign: 'center', marginTop: 0}}><b>Value:</b> "{selectedOption || undefined}"</p><div style={flexStyle}>{children({onChange: handleChange,selectedOption: selectedOption,})}</div></>);}