The modal-dialog React component with React Bootstrap, alternates `window.confirm` and `window.alert`.