From 58b92ca167032c9063f554aeb20f643de6c4ab82 Mon Sep 17 00:00:00 2001 From: "Serhii [boonya] Buinytskyi" <779184+boonya@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:56:46 +0100 Subject: [PATCH] this is client only component --- package.json | 2 +- src/index.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 47ae3e8..a7b57e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@boonya/react-toaster", - "version": "1.0.0-canary.0", + "version": "1.0.0-canary.1", "description": "Simple and lightweight react library to show stackable toasts.", "keywords": [ "notification", diff --git a/src/index.tsx b/src/index.tsx index 015a6f7..c4bd3aa 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,3 +1,5 @@ +'use client'; + import useStack from './useStack'; import {PropsWithChildren} from 'react'; import Portal from './Portal';