我是新来的reactjs。目前在我的应用程序中,我想启用和禁用选择单选按钮的按钮。下面是我的代码:如何启用/禁用选择单选按钮的按钮?
class Radiosample extends React.Component {
render() {
<table>
<tbody>
<tr>
<td>
<Field name="radio1" component="input" id="radio1" type="radio"/> // On check of this radio button below button should enable..
</td>
<Button name="button" id="btn">Click Me</Button>
</tr>
</tbody>
</table>
}
}
export default Radiosample
感谢
[ReactJS中的动态属性]的可能重复(http://stackoverflow.com/questions/29103096/dynamic-attribute-in-reactjs) – juancab