This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
import * as toast from './toast'; | |
function SingleToast() { | |
return ( | |
<> | |
<button onClick={() => toast.error('Error!', { toastId: 'single-toast' })}>OpenError</button> | |
<button | |
onClick={async () => { | |
await toast.dismiss('single-toast'); | |
toast.success('Hey!', { toastId: 'single-toast' }); |