Created
June 29, 2019 07:52
-
-
Save CITGuru/977e25d8d1608573483a51a26ed17ff8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const App = ()=>{ | |
const [itemModalOpen, setItemModalOpen, toggleModal] = useModal() | |
return ( | |
<div className="App"> | |
<button onClick={toggleModal}>Show Modal</button> | |
<CustomModal | |
title="Item Modal" | |
isActive={itemModalOpen} | |
handleClose={() => setItemModalOpen(false)} | |
> | |
{...children} </CustomModal> | |
</div> | |
) | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment