react-confirm2
v0.3.0
Published
Replacement of confirm function with react-bootstrap.
Downloads
267
Readme
confirm
Replacement of confirm function with react-bootstrap.
Usage
import confirm from 'react-confirm2';
confirm('Are you sure?', () => {
console.log('yes');
});
Other examples:
Basic restyling
confirm('Are you sure?', {
confirmLabel: 'Im sure!!!',
description:(
<div>
Please make sure you are sure.
</div>
),
done: () => console.log('confirmed')
})