- Run
yarn install
yarn start
- Open Chrome DevTools console
- Click on the button
- See, it's working :dog_dance:
See index.js:82
to see how it can be used.
If you want to try it by yourself,
- Open Chrome DevTools
- Use
window.confirmAsync
and pass your desired message like:
window.confirmAsync('bilu teteia').then(result => console.log(result))
I'm not responsible for bugs on modal closing/class toggling but the basic use case works.
It's just a PoC to validate confirmAsync case :)