React { Snackbar } is a package for showing messages or popups.
Use the package manager yarn or NPM to install React Snackbar.
yarn install react-snackbar-popup
import Snackbar from 'react-snackbar-popup'
const [showSnackbar, setShowSnackbar] = useState(false);
const handleSnackbar = () => {
setShowSnackbar(false)
}
<Snackbar
message={"Hello World"}
type={'success'}
duration={5000}
closeAlert={e => handleSnackbar(e)}
open={showSnackbar}
/>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.