React promise based modal
Abdul Ghani
You can render your own modal component by only calling a function and decide what to do when the modal is confirmed or cancelled without you having to render the modal component inside of your UI component and state manage the modal component inside of your UI component which adds things to maintain and keep track of inside of your UI component which makes it big. instead use this package to simplify them by just calling a function and it'll render your modal component.
package https://npmjs.com/package/@abdulghani/promise-modal https://github.com/abdulghani/promise-modal#readme
Twitter https://twitter.com/itsabdulghani
Timestamps 00:00 - Intro 00:16 - Start to project 02:38 - Customize with props 04:23 - Handling logic inside the Modal 06:36 - End ... https://www.youtube.com/watch?v=bcSqTlbsdOQ
30027980 Bytes