Island

Quick Start

Install Island and show your first toast in minutes.

Installation

Install the package

npm install react-island

Add the provider

Mount <ViewIslands /> once at the root of your app.

app.tsx
import { ViewIslands } from "island"

export default function App() {
	return (
		<div>
			<ViewIslands />
		</div>
	)
}

Show your first island

app.tsx
import { ViewIslands } from "island"
import { island } from "island"

export default function App() {
	const showIsland = () => island.success("Hi! Mom")
	return (
		<div>
			<ViewIslands />
			<button onclick={showIsland}>Show Island</button>
		</div>
	)
}

Next steps

On this page