Last active
December 21, 2019 20:12
-
-
Save muhshahabipour/711971c7b1b47e8d7e59427b6ae4646a to your computer and use it in GitHub Desktop.
react-notifications-component-homepage2
This file contains hidden or 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
function Homepage() { | |
return ( | |
<> | |
My Website | |
<button | |
onClick={() => { | |
store.addNotification({ | |
content: MyNotification, // 👈 | |
container: 'bottom-right', | |
animationIn: ["animated", "fadeIn"], | |
animationOut: ["animated", "fadeOut"], | |
dismiss: { | |
duration: 3000 | |
} | |
}) | |
}} | |
> | |
Add notification | |
</button> | |
</> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment