1
<DropdownButton bsStyle="default" title="No caret" noCaret id="dropdown-no-caret">
<MenuItem eventKey="1">Action</MenuItem>
<MenuItem eventKey="2">Another action</MenuItem>
<MenuItem eventKey="3">Something else here</MenuItem>
<MenuItem eventKey="4">Separated link</MenuItem>
</DropdownButton>
私は、メニュー項目のいずれかが選択されたときにどのようにボタンのタイトルを更新してしまう、反応-ブートストラップコンポーネントの例からhttps://react-bootstrap.github.io/components.html#btn-dropdowns-nocaretボタンのタイトルを更新するには?
をこの例を取りましたか?
ありがとうございます。私は別のDropdownButtonが更新されると更新されるbtnTitle状態を設定するのが怖かったです。私はいくつかの結果を得ることができましたが、あなたの答えは完全に説明されています。 – lasimonne
お手伝いします! :) –