A react hook that allows clearing the modal state.
function MyComponent() { const clearModal = useClearModal(); return ( <button onClick={clearModal}>Close Modal</button> )}
A function that clears the modal state.
Generated using TypeDoc
A react hook that allows clearing the modal state.
Example
Returns
A function that clears the modal state.