Quick Start
Installation
Mount the host
Render ToiHost once, anywhere in your component tree, to give toi a place to mount the components it renders.
Await a component
Call toi with a component to mount it into ToiHost and await the value passed to its resolve prop.
resolve can also be called with no argument, for components — such as toasts — that don't need to resolve with a value:
That's the whole API surface for basic usage. Continue to Mounting the Host and Resolving to see how the lifecycle behaves in more detail.