Hi i am working on react and i am facing some issues regarding the radio button.I have case like Yes or No where when ever user say Yes i have to show the text box and when he say No i have to hide the text box.
so can any one give me the suggestion that how i can perform this task. I am using Ant design to show the radio button.
<Form.Item>
{getFieldDecorator("isBranchAvailable", {
initialValue: this.props.firmDetails.isBranchAvailable,
})(
<Radio.Group>
<Radio value={1}>yes</Radio>
<Radio value={2}>no</Radio>
</Radio.Group>
)}
</Form.Item>