我是新來的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