National Puppy Menace

    react-confirm2

    0.3.0 • Public • Published

    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')
    })

    Keywords

    Install

    npm i react-confirm2

    DownloadsWeekly Downloads

    76

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • sergeyt