Skip to content

Instantly share code, notes, and snippets.

View nelsoneldoro's full-sized avatar

Nelson Eldoro nelsoneldoro

  • Fortaleza, Ceará, Brazil
View GitHub Profile
@nelsoneldoro
nelsoneldoro / SingleToast.jsx
Last active September 26, 2024 04:30
react-toastify: dismiss as promise
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' });
@nelsoneldoro
nelsoneldoro / test.html
Created March 20, 2024 19:02
Hello World Html
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
@nelsoneldoro
nelsoneldoro / test.md
Created March 20, 2024 19:01
Hello World Markdown

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}