0.1.3 • Published 7 years ago

toast-system v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

toast-system

A minimalistic Toast notification system for React

  • Zero dependencies
  • Style-agnostic

Usage

npm install react-toast
import { ToastsProvider, Toast } from 'react-toast';

const App = ReactDOM.render(
  <ToastsProvider>
    <header>
      <h1>My app<h1>
    </header>
    <main>
      <Toast>
        {toast => <button onClick={() => toast(<div>Clicked!</div>, 1500)}>}
      </Toast>
    </main>
  </ToastsProvider>,
  document.getElementById('root')
);
0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago