Block library based for Reactjs
npm install @codestacks/react-block
This is a toast message function for React development notifications





^1.1.0 support react >=18.0.0 <20.0.0
- Supports queue block list
- Plug and unplug using @codestacks/react-portal and framer-motion
``bash`
yarn add @codestacks/react-block
add in your index.tsx
`tst`
import "@codestacks/react-block/dist/index.css";
add in your App.tsx
`tsx
import {BlockPortal} from "@codestacks/react-block";
const App = () => {
return (
then in your page
`tsx
import {block} from '@codestacks/react-block';
import {useEffect} from "react";const Example = () => {
useEffect(() => {
block.show();
setTimeout(() => {
block.hide();
}, 3000)
}, []);
return (
sample page
);
};
``- block.show
- block.hide
There is also a example that you can play with it:

MIT © codestacks