【发布时间】:2020-11-26 07:56:11
【问题描述】:
在 React 中,当值 potentialMatch.isExactMatch 为 True 时,应自动触发单选按钮 onClick 函数。不使用 ref 作为输入类型。
<input type="radio" onClick={() => {this.selectedInvitingOrg(param)}}
name="potentialMatchRadioGroup" checked={potentialMatch.isExactMatch}/>
【问题讨论】:
-
添加
useEffect并观看
标签: javascript reactjs