Fix unintentional re-renders
Thanks for the discussion from #8, I made a improvement by #9
- Refactor GoodBye Provider with bound object literal that avoids the new React 16.3 context caveats which may leads to unintentional re-render
- Rename
pass
function tohandlePass
. It allows you to do additional actions (of course, you can wrap thehandleOk
orhandleCancel
with your own higher-order function!).