反応ブートストラップボタンのグループをラジオボタンセットにしようとしています。要素を使用したブートストラップでこれを簡単に行うことができますが<input type="radio">
、react-bootstrap でこれを行う方法がわかりません。次のコードは、ユーザーが 1 つだけではなくすべてのボタンを選択できるようにします。
JS:
const operationButtons = (
<ButtonGroup>
<Button active>Radio 1</Button>
<Button>Radio 2</Button>
</ButtonGroup>
);
React.render(operationButtons, document.getElementById('operationButtonsDiv'));
HTML:
<div name="operationButtonsDiv" id="operationButtonsDiv" data-toggle="buttons"/>