v1.0.0!
Considering this now production ready since I'm using the version from npm in my own side project. I'll continue to improve as and where becomes necessary, or when issues are raised.
v1 has a breaking change.
- Use standard React
childreninstead of thecontentprop onModalwhich has now been removed.
This version nw uses React portal and fixes an issue where you couldn't access a wrapper context inside Modal content because the actual ModalContainer was outside of the context due to how I hacked the hierarchy around how the modals were rendered. Using portal resolves this issue as the components are rendered in the correct hierarchy which is separate to the DOM structure.
Enjoy!