@jswork/next-toastify
v1.0.1
Published
nx.toast for react-toastify.
Downloads
6
Readme
next-toastify
nx.toast for react-toastify.
installation
yarn add react-toastify @jswork/next-toastify
usage
import React from 'react';
import { ToastContainer } from 'react-toastify';
import '@jswork/next-toastify';
import 'react-toastify/dist/ReactToastify.css';
// minified version is also included
// import 'react-toastify/dist/ReactToastify.min.css';
function App(){
const notify = () => nx.toast("Wow so easy !");
return (
<div>
<button onClick={notify}>Notify !</button>
<ToastContainer />
</div>
);
}
license
Code released under the MIT license.