useModal
Hooks that exposes Modalfy's API.
Note: Prefer withModal() HOC if you're using a Class component.
The object returned by useModal()
is covered in ModalProp.
If you're using TypeScript and have your params types, you can get some nice autocomplete by utilising useModal()
like this:
Last updated