Skip to content

Commit

Permalink
README: Fixed the code example of the advanced usage (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkomelin authored Feb 12, 2024
1 parent 9d2ce4f commit 173dda0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ You can also hook into the toast life-cycle by adding a parameter to the JSX Fun

```jsx
toast.custom(
(t) => {
(t) => (
<div>
<h1>Custom Toast</h1>
<p>This is a custom toast!</p>
<p>{t.visible ? 'Showing' : 'I will close in 1 second'}</p>
<button onClick={() => toast.dismiss(t.id)}>Close Toast</button>
</div>;
},
),
{
unmoutDelay: 1000,
unmountDelay: 1000,
}
);
```
Expand Down

0 comments on commit 173dda0

Please sign in to comment.