How to use radio buttons in ReactJS?

前端 未结 10 2166
再見小時候
再見小時候 2020-11-27 10:05

I am new to ReactJS, sorry if this sounds off. I have a component that creates several table rows according to the received data.

Each cell within the column has a

10条回答
  •  情书的邮戳
    2020-11-27 10:22

    Bootstrap guys, we do it like this:

    
    export default function RadioButton({ onChange, option }) {
        const handleChange = event => {
            onChange(event.target.value)
        }
    
        return (
            <>
                
    ) }

提交回复
热议问题