-
-
Save brunosabot/4ba4b450f769a15e52c5b3de3a078451 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
import React, { useState } from "react"; | |
import ModalAnimated from "../components/modal/ModalAnimated"; | |
interface Props { | |
[key: string]: never; | |
} | |
const PopinUsageSample: React.FC<Props> = () => { | |
const [active, setActive] = useState(false); | |
return ( | |
<> | |
<ModalAnimated active={active} onClose={() => setActive(false)}> | |
Hello, world! | |
</ModalAnimated> | |
<button onClick={() => setActive(true)}>Open a popin</button> | |
</> | |
); | |
}; | |
export default PopinUsageSample; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment