1.0.1 • Published 2 years ago

@jswork/next-toastify v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

next-toastify

nx.toast for react-toastify.

version license size download

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.

1.0.1

2 years ago