diff --git a/README.md b/README.md index 0d78057..1b93973 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ A simple headless toast solution for your React project. ## Quick guide +You can render the toasts using either `useToasts` or `ToastProvider`, returned from `initToast`. `ToastProvider` uses `useToasts` internally, and is just a convenient wrapper. + ```tsx // toast.ts import { initToast } from "@ryfylke-react/toast"; @@ -27,12 +29,15 @@ const App = () => { return ( <> { return ( -
+
{props.toasts.map((toast) => (