1.3.4 • Published 1 year ago

rc-toastr v1.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Usage

import { ToastProvider } from 'rc-toastr'
import "rc-toastr/dist/index.css" // import the css file

ReactDOM.render((
    <ToastProvider>
        <App />
    </ToastProvider>
), document.getElementById('root'))
import { useToast } from 'rc-toastr'

const App = () => {
    const { toast } = useToast()
    const hello = () => toast.success("Hello World!")
    return <button onClick={toast}> Say Hello </button>
  }

export default App

Documentation:

For more information and examples feel free to check the official website at: dub.sh/rc-toastr

1.2.0

2 years ago

1.3.4

1 year ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago